Enlightenment CVS committal Author : lordchaos Project : e17 Module : apps/evfs
Dir : e17/apps/evfs/src/demo Modified Files: evfs_demo.c Log Message: Added file remove, implemented function pointers for callbacks on plugin init. TODO: Doc this before it gets too complicated =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/demo/evfs_demo.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- evfs_demo.c 16 Aug 2005 09:00:21 -0000 1.5 +++ evfs_demo.c 19 Aug 2005 12:15:11 -0000 1.6 @@ -5,7 +5,8 @@ evfs_connection* con; void callback(evfs_event* data) { - + static char str_data[1024]; + if (data->type == EVFS_EV_REPLY) { switch (data->sub_type) { case EVFS_EV_SUB_MONITOR_NOTIFY: @@ -16,9 +17,17 @@ } } - if (mon_current == 10) { + if (mon_current == 2) { + snprintf(str_data,1024,"posix://%s/newfile", getenv("HOME")); + + evfs_file_uri_path* path = evfs_parse_uri(str_data); printf("Removing monitor...\n"); evfs_monitor_remove(con, dir_path->files[0]); + + printf("DEMO: Removing HOME/newfile\n"); + evfs_client_file_remove(con, path->files[0]); + + } /*TODO : Free event*/ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs