Separate platform indepenent code into monitor.c, and move inotify(7)
specific code to monitor_inotify.c. Both monitor_inotify.c and monitor_kqueue.c provide their functions for adding and removing watches. Prefix these functions with monitor_.
This commit is contained in:
@ -5,7 +5,8 @@ int monitor_remove_directory(int fd, const char * path);
|
||||
|
||||
#if defined(HAVE_INOTIFY) || defined(HAVE_KQUEUE)
|
||||
#define HAVE_WATCH 1
|
||||
int add_watch(int, const char *);
|
||||
int monitor_add_watch(int, const char *);
|
||||
int monitor_remove_watch(int, const char *);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_INOTIFY
|
||||
|
Reference in New Issue
Block a user