Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : apps/efsd
Dir : e17/apps/efsd/demo
Modified Files:
ecore_efsddemo.c
Log Message:
Decided to require ecore. Live with it
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/efsd/demo/ecore_efsddemo.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ecore_efsddemo.c 9 Aug 2005 05:25:11 -0000 1.2
+++ ecore_efsddemo.c 10 Aug 2005 23:59:32 -0000 1.3
@@ -41,6 +41,12 @@
EfsdConnection* ec;
int id;
+int flush_output(void* data) {
+ fflush(stdout);
+
+ return 1;
+}
+
void handle_efsd_event(EfsdEvent *ee);
@@ -50,7 +56,6 @@
static struct timeval tv2;
int i;
- printf("Handling event..\n");
gettimeofday(&tv2, NULL);
printf("%li.%li ", tv2.tv_sec-tv.tv_sec, tv2.tv_usec-tv.tv_usec);
@@ -216,6 +221,8 @@
case EFSD_CMD_STAT:
{
struct stat *st;
+
+ printf ("Number of files in event: %d\n",
ee->efsd_reply_event.command.efsd_file_cmd.num_files);
for (i=0;i<
ee->efsd_reply_event.command.efsd_file_cmd.num_files;i++) {
printf("Stat event %i stating file %s\n",
ee->efsd_reply_event.command.efsd_file_cmd.id,
@@ -283,6 +290,7 @@
/* Cleanup memory allocated for this event */
efsd_event_cleanup(ee);
+
}
@@ -304,6 +312,10 @@
ecore_init();
ecore_ipc_init();
+ /*Register event callback*/
+ efsd_event_callback_register(&handle_efsd_event);
+
+
char *movetest[] = { "yep", "tmp" };
/* Read command-line options. */
@@ -328,8 +340,7 @@
exit(-1);
}
- /*Register event callback*/
- efsd_event_callback_register(&handle_efsd_event);
+
/* FILE type tests */
for (i = (blocking ? 1 : 2); i < argc; i++)
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs