#include <Ecore.h>
#include <Eio.h>
void file_modified(void *data, int type, void *event)
{
const char *filename = (const char *)data;
printf("file %s ", filename);
printf("is being modified");
printf("is no longer being modified");
else printf("got unexpected changes");
printf("\n");
}
int main(int argc, char **argv) {
Eio_Monitor *monitor = NULL,
*monitor2 = NULL;
}
Eina_Bool(* Ecore_Event_Handler_Cb)(void *data, int type, void *event)
A callback used by the main loop to handle events of a specified type.
Definition: Ecore_Common.h:603
Ecore_Event_Handler * ecore_event_handler_add(int type, Ecore_Event_Handler_Cb func, const void *data)
Adds an event handler.
Definition: ecore_events.c:13
void ecore_main_loop_begin(void)
Runs the application main loop.
Definition: ecore_main.c:1311
EINA_API Eina_Stringshare * eina_stringshare_add(const char *str)
Retrieves an instance of a string for use in a program.
Definition: eina_stringshare.c:606
EINA_API void eina_stringshare_del(Eina_Stringshare *str)
Notes that the given string has lost an instance.
Definition: eina_stringshare.c:533
EIO_API int eio_init(void)
Initialize eio and all its required submodule.
Definition: eio_main.c:276
EIO_API int eio_shutdown(void)
Shutdown eio and all its submodule if possible.
Definition: eio_main.c:340
EIO_API int EIO_MONITOR_FILE_MODIFIED
A file was modified in a watched directory.
Definition: eio_monitor.c:308
EIO_API int EIO_MONITOR_FILE_CLOSED
A file was closed in a watched directory.
Definition: eio_monitor.c:309
EIO_API Eio_Monitor * eio_monitor_add(const char *path)
Adds a file/directory to monitor (inotify mechanism)
Definition: eio_monitor.c:318