Enlightenment CVS committal Author : lordchaos Project : e17 Module : apps/evfs
Dir : e17/apps/evfs/src/demo Modified Files: evfs_demo.c Log Message: * Stage one of the event engine. Demo app now receives and displays events =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/demo/evfs_demo.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- evfs_demo.c 15 Aug 2005 10:52:33 -0000 1.3 +++ evfs_demo.c 16 Aug 2005 07:31:40 -0000 1.4 @@ -1,5 +1,18 @@ #include <evfs.h> +void callback(evfs_event* data) { + + if (data->type == EVFS_EV_REPLY) { + switch (data->sub_type) { + case EVFS_EV_SUB_MONITOR_NOTIFY: + printf("DEMO: Received a file monitor notification\n"); + printf("DEMO: For file: '%s'\n", data->data); + } + } + + /*TODO : Free event*/ +} + int main() { evfs_connection* con; evfs_file_uri_path* path; @@ -8,7 +21,7 @@ printf("EVFS Demo system..\n"); - con = evfs_connect(); + con = evfs_connect(&callback); path = evfs_parse_uri("posix:///dev/ttyS0"); ------------------------------------------------------- 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