1 /* guile-gnome
2  * Copyright (C) 2006 Andy Wingo <wingo at pobox dot com>
3  *
4  * gc.h: A sweep-safe replacement for scm_gc_protect_object
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, contact:
18  *
19  * Free Software Foundation           Voice:  +1-617-542-5942
20  * 59 Temple Place - Suite 330        Fax:    +1-617-542-2652
21  * Boston, MA  02111-1307,  USA       gnu@gnu.org
22  */
23 
24 #ifndef __GUILE_GNOME_GOBJECT_GC_H__
25 #define __GUILE_GNOME_GOBJECT_GC_H__
26 
27 
28 #include <glib.h>
29 #include <libguile.h>
30 
31 
32 G_BEGIN_DECLS
33 
34 
35 gpointer scm_glib_gc_protect_object (SCM obj);
36 void scm_glib_gc_unprotect_object (gpointer key);
37 
38 
39 void scm_init_gnome_gobject_gc (void);
40 
41 
42 G_END_DECLS
43 
44 
45 #endif /* __GUILE_GNOME_GOBJECT_GC_H__ */
46