summaryrefslogtreecommitdiff
path: root/src/lib/ecore_file/ecore_file_private.h
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-06 13:38:34 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-06 13:38:34 +0000
commit62bb4646c9fee3f535c3810a7cdba114043d14d4 (patch)
treefad3ac78c2163cb5ebebb916c5ca52e3ed5f4ef0 /src/lib/ecore_file/ecore_file_private.h
parent6a5eaacc6ada22808ec8515ef2b414883f4f59fe (diff)
efl/ecore_file: refactor to be more like eio in providing backends.
instead of the previous mess, just define the functions with common names and call the backend that was compiled in, similar to what eio does. also do not be silent on errors, use eina_safety_checks to issue warnings. SVN revision: 80360
Diffstat (limited to 'src/lib/ecore_file/ecore_file_private.h')
-rw-r--r--src/lib/ecore_file/ecore_file_private.h45
1 files changed, 9 insertions, 36 deletions
diff --git a/src/lib/ecore_file/ecore_file_private.h b/src/lib/ecore_file/ecore_file_private.h
index 769f2ba014..5a091b3b04 100644
--- a/src/lib/ecore_file/ecore_file_private.h
+++ b/src/lib/ecore_file/ecore_file_private.h
@@ -81,42 +81,15 @@ struct _Ecore_File_Monitor
81 Ecore_File *files; 81 Ecore_File *files;
82}; 82};
83 83
84#ifdef HAVE_SYS_INOTIFY_H 84int ecore_file_monitor_backend_init(void);
85int ecore_file_monitor_inotify_init(void); 85int ecore_file_monitor_backend_shutdown(void);
86int ecore_file_monitor_inotify_shutdown(void); 86Ecore_File_Monitor *ecore_file_monitor_backend_add(const char *path,
87Ecore_File_Monitor *ecore_file_monitor_inotify_add(const char *path, 87 void (*func) (void *data,
88 void (*func) (void *data, 88 Ecore_File_Monitor *ecore_file_monitor,
89 Ecore_File_Monitor *ecore_file_monitor, 89 Ecore_File_Event event,
90 Ecore_File_Event event, 90 const char *path),
91 const char *path), 91 void *data);
92 void *data); 92void ecore_file_monitor_backend_del(Ecore_File_Monitor *ecore_file_monitor);
93void ecore_file_monitor_inotify_del(Ecore_File_Monitor *ecore_file_monitor);
94#endif
95
96#ifdef HAVE_NOTIFY_WIN32
97int ecore_file_monitor_win32_init(void);
98int ecore_file_monitor_win32_shutdown(void);
99Ecore_File_Monitor *ecore_file_monitor_win32_add(const char *path,
100 void (*func) (void *data,
101 Ecore_File_Monitor *ecore_file_monitor,
102 Ecore_File_Event event,
103 const char *path),
104 void *data);
105void ecore_file_monitor_win32_del(Ecore_File_Monitor *ecore_file_monitor);
106#endif
107
108#ifdef HAVE_POLL
109int ecore_file_monitor_poll_init(void);
110int ecore_file_monitor_poll_shutdown(void);
111Ecore_File_Monitor *ecore_file_monitor_poll_add(const char *path,
112 void (*func) (void *data,
113 Ecore_File_Monitor *ecore_file_monitor,
114 Ecore_File_Event event,
115 const char *path),
116 void *data);
117void ecore_file_monitor_poll_del(Ecore_File_Monitor *ecore_file_monitor);
118
119#endif
120 93
121/* ecore_file_path */ 94/* ecore_file_path */
122void ecore_file_path_init(void); 95void ecore_file_path_init(void);