[gnio] Add GSocketSourceFunc declaration



commit dd4ae53502a9eac86d6028dd7ac4ee1d4446601e
Author: Alexander Larsson <alexl redhat com>
Date:   Tue May 5 12:27:21 2009 +0200

    Add GSocketSourceFunc declaration
    
    This is what the source created by the socket calls back as.
    It is compatible with the GFDSourceFunc, but doesn't expose the fd,
    as that is not really portable.
---
 gio/gsocket.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gio/gsocket.h b/gio/gsocket.h
index 4b27bb5..481b1a2 100644
--- a/gio/gsocket.h
+++ b/gio/gsocket.h
@@ -74,6 +74,9 @@ typedef struct
   gsize size;
 } GOutputVector;
 
+typedef gboolean (*GSocketSourceFunc) (gpointer     user_data,
+				       GIOCondition condition);
+
 GType                  g_socket_get_type                (void);
 GSocket *              g_socket_new                     (GSocketFamily            family,
 							 GSocketType              type,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]