1 /* GLib Extra - Tentative GLib code and GLib supplements
2  * Copyright (C) 1997-2002 Tim Janik
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General
15  * Public License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19 #ifndef __SFI_GLIB_EXTRA_H__
20 #define __SFI_GLIB_EXTRA_H__
21 
22 #include	<glib.h>
23 #include	<glib-object.h>
24 
25 G_BEGIN_DECLS
26 
27 /* --- macros --- */
28 /* --- unix signal queue --- */
29 typedef gboolean (*GUSignalFunc) (gint8          usignal,
30 			 	  gpointer       data);
31 guint   g_usignal_add            (gint8          usignal,
32 				  GUSignalFunc   function,
33 				  gpointer       data);
34 guint   g_usignal_add_full       (gint           priority,
35 				  gint8          usignal,
36 				  GUSignalFunc   function,
37 				  gpointer       data,
38 				  GDestroyNotify destroy);
39 void    g_usignal_notify         (gint8          usignal);
40 
41 G_END_DECLS
42 
43 #endif /* __SFI_GLIB_EXTRA_H__ */
44