21 #ifndef __EDELIB_DIRWATCH_H__
22 #define __EDELIB_DIRWATCH_H__
24 #include "edelib-global.h"
67 typedef void (DirWatchCallback)(
const char* dir,
const char* w,
int flags,
void* data);
187 bool init_backend(
void);
204 bool add_entry(
const char* dir,
int flags);
205 bool remove_entry(
const char* dir);
206 bool have_entry(
const char* dir);
207 void add_callback(DirWatchCallback* cb,
void* data);
208 void run_callback(
int fd);
215 static bool init(
void);
221 static void shutdown(
void);
228 static bool add(
const char* dir,
int flags);
233 static bool remove(
const char* dir);
239 static void callback(DirWatchCallback& cb,
void* data = 0);
Existing item was renamed.
Definition: DirWatch.h:59
FAM/gamin.
Definition: DirWatch.h:48
inotify (linux kernel >= 2.6.13)
Definition: DirWatch.h:47
In directory item created.
Definition: DirWatch.h:33
A new item was created.
Definition: DirWatch.h:57
In directory item is accessed (read, ...)
Definition: DirWatch.h:35
None notifier; watching disabled.
Definition: DirWatch.h:46
Not figured out what happened.
Definition: DirWatch.h:56
In directory item's attributes changed.
Definition: DirWatch.h:37
Existing item was deleted.
Definition: DirWatch.h:60
DirWatchReportFlags
Returned codes for received event.
Definition: DirWatch.h:55
Existing item was modified.
Definition: DirWatch.h:58
DirWatchNotifier
Notifier type used by DirWatch.
Definition: DirWatch.h:45
#define E_DISABLE_CLASS_COPY(klass)
Definition: edelib-global.h:161
Directory changes notifier.
Definition: DirWatch.h:180
DirWatchFlags
Flags telling to DirWatch what changes to monitor.
Definition: DirWatch.h:32