summaryrefslogtreecommitdiffstats
path: root/common/glib-ectomy.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-02-24 20:52:07 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-02-24 20:52:07 +0000
commitd6c6e3c549fc59e25dd0869495e7b2f8c1ef999f (patch)
tree4f3b04232736492ea259535e2923c9bd92bcc563 /common/glib-ectomy.h
parent8d49d5f190c9e7ff03e2c8a596881fbbb59454aa (diff)
Add support for destroy notification function
Diffstat (limited to 'common/glib-ectomy.h')
-rw-r--r--common/glib-ectomy.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/glib-ectomy.h b/common/glib-ectomy.h
index c507e3c7..e921b40d 100644
--- a/common/glib-ectomy.h
+++ b/common/glib-ectomy.h
@@ -71,6 +71,7 @@ typedef enum {
G_IO_NVAL = POLLNVAL
} GIOCondition;
+typedef void (*GDestroyNotify) (gpointer data);
typedef gboolean (*GIOFunc) (GIOChannel *source, GIOCondition condition, gpointer data);
GIOError g_io_channel_read(GIOChannel *channel, gchar *buf, gsize count, gsize *bytes_read);
@@ -78,7 +79,11 @@ void g_io_channel_close(GIOChannel *channel);
GIOChannel *g_io_channel_unix_new(int fd);
gint g_io_channel_unix_get_fd(GIOChannel *channel);
-guint g_io_add_watch(GIOChannel *channel, GIOCondition condition, GIOFunc func, gpointer user_data);
+guint g_io_add_watch(GIOChannel *channel, GIOCondition condition,
+ GIOFunc func, gpointer user_data);
+guint g_io_add_watch_full(GIOChannel *channel, gint priority,
+ GIOCondition condition, GIOFunc func,
+ gpointer user_data, GDestroyNotify notify);
void g_io_remove_watch(guint id);
GMainLoop *g_main_loop_new(GMainContext *context, gboolean is_running);