Enlightenment CVS committal Author : lordchaos Project : e17 Module : apps/evfs
Dir : e17/apps/evfs/src/lib Modified Files: libevfs.c Log Message: * patch from Victor Kojouharov to pass a data object back on callback. =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/lib/libevfs.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -3 -r1.30 -r1.31 --- libevfs.c 15 Jan 2006 12:26:40 -0000 1.30 +++ libevfs.c 23 Jan 2006 10:59:33 -0000 1.31 @@ -68,7 +68,7 @@ if (conn->callback_func) { evfs_event* ev = conn->prog_event; - (*conn->callback_func)(ev); + (*conn->callback_func)(ev, conn->obj); } else { printf("EVFS: Alert - no callback registered for event\n"); } @@ -104,7 +104,7 @@ return 0; } -evfs_connection* evfs_connect(void (*callback_func)(evfs_event*)) { +evfs_connection* evfs_connect(void (*callback_func)(evfs_event*, void*), void *obj) { ecore_init(); ecore_ipc_init(); int connect_attempts = 0; @@ -113,6 +113,7 @@ connection->id = MAX_CLIENT; connection->prog_event = NULL; connection->callback_func = callback_func; + connection->obj = obj; evfs_io_initialise(); evfs_vfolder_initialise(); ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs