loudmouth/lm-socket.h
changeset 256 2266e56746ed
parent 244 8a05b79bad24
child 271 52ea4e0b897a
--- a/loudmouth/lm-socket.h	Sun Feb 25 22:48:39 2007 +0100
+++ b/loudmouth/lm-socket.h	Mon Feb 26 01:17:30 2007 +0100
@@ -31,6 +31,14 @@
 				       const gchar    *buf,
 				       gpointer        user_data);
 
+typedef void    (* SocketClosedFunc)  (LmSocket       *socket,
+				       LmDisconnectReason reason,
+				       gpointer        user_data);
+
+typedef void    (* ConnectResultFunc) (LmSocket        *socket,
+				       gboolean         result,
+				       gpointer         user_data);
+
 gboolean  lm_socket_output_is_buffered    (LmSocket       *socket,
 					   const gchar    *buffer,
 					   gint            len);
@@ -42,7 +50,9 @@
 					   gint            len);
 
 LmSocket *  lm_socket_create              (GMainContext   *context, 
-					   IncomingDataFunc func,
+					   IncomingDataFunc data_func,
+					   SocketClosedFunc closed_func,
+					   ConnectResultFunc connect_func,
 					   gpointer         user_data,
 					   LmConnection   *connection,
 					   gboolean        blocking,