2 Compile with gcc -o ecore_exe_example_child ecore_exe_example_child.c `pkg-config --cflags --libs ecore`
10 #define BUFFER_SIZE 1024
13 _fd_handler_cb(void *data, Ecore_Fd_Handler
16 static int numberOfMessages = 0;
17 char message[BUFFER_SIZE];
19 fgets(message, BUFFER_SIZE, stdin);
23 if (numberOfMessages < 3)
25 fprintf(stdout, "My father sent this message to me:%s\n", message);
27 return ECORE_CALLBACK_RENEW;
31 fprintf(stdout, "quit\n");
33 ecore_main_loop_quit();
34 return ECORE_CALLBACK_DONE;
39 main(int argc, char **argv)
45 ecore_main_fd_handler_add(STDIN_FILENO,
49 ecore_main_loop_begin();