Enlightenment CVS committal

Author  : rephorm
Project : e17
Module  : proto

Dir     : e17/proto/e_dbus/src/lib/dbus


Modified Files:
        E_DBus.h Makefile.am 
Added Files:
        e_dbus_util.c 


Log Message:
add callback helpers to dbus

===================================================================
RCS file: /cvs/e/e17/proto/e_dbus/src/lib/dbus/E_DBus.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- E_DBus.h    24 Mar 2007 02:11:09 -0000      1.6
+++ E_DBus.h    11 Jul 2007 00:43:40 -0000      1.7
@@ -106,6 +106,23 @@
                            void *value, E_DBus_Method_Return_Cb cb_return,
                            void *data);
 
+/**
+ * A callback function for a DBus call
+ * @param user_data the data passed in to the method call
+ * @param event_data a struct containing the return data.
+ */
+typedef void (*E_DBus_Callback_Func) (void *user_data, void *method_return);
+
+typedef struct E_DBus_Callback E_DBus_Callback;
+struct E_DBus_Callback
+{
+  E_DBus_Callback_Func func;
+  void *user_data;
+};
+
+E_DBus_Callback *e_dbus_callback_new(E_DBus_Callback_Func cb_func, void 
*user_data);
+void e_dbus_callback_free(E_DBus_Callback *callback);
+void e_dbus_callback_call(E_DBus_Callback *cb, void *data);
 
 
 #define DEBUG_LVL 0
===================================================================
RCS file: /cvs/e/e17/proto/e_dbus/src/lib/dbus/Makefile.am,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- Makefile.am 22 Mar 2007 07:15:23 -0000      1.5
+++ Makefile.am 11 Jul 2007 00:43:40 -0000      1.6
@@ -11,6 +11,7 @@
        e_dbus_methods.c \
        e_dbus_interfaces.c \
        e_dbus_object.c \
+       e_dbus_util.c \
        e_dbus_signal.c
 
 



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to