Enlightenment CVS committal Author : rephorm Project : e17 Module : proto
Dir : e17/proto/e_dbus/src/bin Modified Files: notify.c Log Message: pass errors along in callbacks =================================================================== RCS file: /cvs/e/e17/proto/e_dbus/src/bin/notify.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- notify.c 11 Jul 2007 00:46:29 -0000 1.2 +++ notify.c 11 Jul 2007 00:46:37 -0000 1.3 @@ -4,12 +4,17 @@ static dbus_uint32_t msg_num = 0; void -cb_sent(void *data, void *ret) +cb_sent(void *data, void *ret, DBusError *err) { E_Notification_Return_Notify *notify; notify = ret; - if (notify) { + if (notify) + { printf("id: %d\n", notify->notification_id); + } + else if (dbus_error_is_set(err)) + { + printf("Error: %s\n", err->message); } ecore_main_loop_quit(); } ------------------------------------------------------------------------- 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