one API. Monitor is started either before main loop, if scanner isn't running, or in the main loop once we finished waiting for the scanner.
13 lines
442 B
C
13 lines
442 B
C
int monitor_insert_file(const char *name, const char *path);
|
|
int monitor_insert_directory(int fd, char *name, const char * path);
|
|
int monitor_remove_file(const char * path);
|
|
int monitor_remove_directory(int fd, const char * path);
|
|
|
|
#if defined(HAVE_INOTIFY) || defined(HAVE_KQUEUE)
|
|
#define HAVE_WATCH 1
|
|
int monitor_add_watch(int, const char *);
|
|
int monitor_remove_watch(int, const char *);
|
|
void monitor_start();
|
|
void monitor_stop();
|
|
#endif
|