Make GSocketSourceFunc return the GSocket
[platform/upstream/glib.git] / gio / gasynchelper.h
index b4d8e50..e95b405 100644 (file)
@@ -24,6 +24,7 @@
 #define __G_ASYNC_HELPER_H__
 
 #include <gio/gio.h>
+#include <glib-object.h>
 
 G_BEGIN_DECLS
 
@@ -37,6 +38,9 @@ typedef struct
 typedef gboolean (*GFDSourceFunc) (gpointer     user_data,
                                   GIOCondition condition,
                                   int          fd);
+typedef gboolean (*GFDSourceObjectFunc) (GObject *object,
+                                        GIOCondition condition,
+                                        gpointer     user_data);
 
 void     _g_queue_async_result (GAsyncResultData *result,
                                gpointer         async_object,
@@ -44,9 +48,13 @@ void     _g_queue_async_result (GAsyncResultData *result,
                                gpointer         user_data,
                                GSourceFunc      source_func);
 
-GSource *_g_fd_source_new      (int              fd,
-                               gushort          events,
-                               GCancellable    *cancellable);
+GSource *_g_fd_source_new_with_object (GObject      *object,
+                                      int           fd,
+                                      gushort       events,
+                                      GCancellable *cancellable);
+GSource *_g_fd_source_new             (int           fd,
+                                      gushort       events,
+                                      GCancellable *cancellable);
 
 G_END_DECLS