Consolidate start/finish of monitor on different platforms into

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.
This commit is contained in:
Gleb Smirnoff
2018-01-24 22:24:45 -08:00
parent ee912576b3
commit cad8c922f0
4 changed files with 71 additions and 55 deletions

View File

@ -7,13 +7,6 @@ int monitor_remove_directory(int fd, const char * path);
#define HAVE_WATCH 1
int monitor_add_watch(int, const char *);
int monitor_remove_watch(int, const char *);
#endif
#ifdef HAVE_INOTIFY
void *
start_inotify();
#endif
#ifdef HAVE_KQUEUE
void kqueue_monitor_start();
void monitor_start();
void monitor_stop();
#endif