Enlightenment CVS committal Author : rephorm Project : e17 Module : proto
Dir : e17/proto/e_dbus/src/lib/dbus Modified Files: E_DBus.h e_dbus_util.c Log Message: pass errors along in callbacks =================================================================== RCS file: /cvs/e/e17/proto/e_dbus/src/lib/dbus/E_DBus.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- E_DBus.h 11 Jul 2007 00:44:54 -0000 1.8 +++ E_DBus.h 11 Jul 2007 00:46:37 -0000 1.9 @@ -111,7 +111,7 @@ * @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 void (*E_DBus_Callback_Func) (void *user_data, void *method_return, DBusError *error); typedef struct E_DBus_Callback E_DBus_Callback; struct E_DBus_Callback @@ -122,7 +122,7 @@ 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); +void e_dbus_callback_call(E_DBus_Callback *cb, void *data, DBusError *error); const char *e_dbus_basic_type_as_string(int type); =================================================================== RCS file: /cvs/e/e17/proto/e_dbus/src/lib/dbus/e_dbus_util.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- e_dbus_util.c 11 Jul 2007 00:44:54 -0000 1.2 +++ e_dbus_util.c 11 Jul 2007 00:46:37 -0000 1.3 @@ -32,9 +32,10 @@ } void -e_dbus_callback_call(E_DBus_Callback *cb, void *data) +e_dbus_callback_call(E_DBus_Callback *cb, void *data, DBusError *error) { - cb->func(cb->user_data, data); + if (cb && cb->func) + cb->func(cb->user_data, data, error); } const char * ------------------------------------------------------------------------- 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