summaryrefslogtreecommitdiff
path: root/glib/gmain.h
diff options
context:
space:
mode:
Diffstat (limited to 'glib/gmain.h')
-rw-r--r--glib/gmain.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/glib/gmain.h b/glib/gmain.h
index 5853c10da..cd9528887 100644
--- a/glib/gmain.h
+++ b/glib/gmain.h
@@ -59,10 +59,13 @@ struct _GSourceCallbackFuncs
void (*ref) (gpointer cb_data);
void (*unref) (gpointer cb_data);
void (*get) (gpointer cb_data,
+ GSource *source,
GSourceFunc *func,
gpointer *data);
};
+typedef void (*GSourceDummyMarshal) (void);
+
struct _GSourceFuncs
{
gboolean (*prepare) (GSource *source,
@@ -72,6 +75,10 @@ struct _GSourceFuncs
GSourceFunc callback,
gpointer user_data);
void (*finalize) (GSource *source); /* Can be NULL */
+
+ /* For use by g_source_set_closure */
+ GSourceFunc closure_callback;
+ GSourceDummyMarshal closure_marshal; /* Really is of type GClosureMarshal */
};
/* Any definitions using GPollFD or GPollFunc are primarily
@@ -286,6 +293,10 @@ guint g_idle_add_full (gint priority,
GDestroyNotify notify);
gboolean g_idle_remove_by_data (gpointer data);
+/* Hook for GClosure / GSource integration. Don't touch */
+GLIB_VAR GSourceFuncs g_timeout_funcs;
+GLIB_VAR GSourceFuncs g_idle_funcs;
+
#ifdef G_OS_WIN32
/* This is used to add polling for Windows messages. GDK (GTK+) programs