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:
@ -259,13 +259,12 @@ monitor_remove_watch(int fd __unused, const char *path __unused)
|
||||
}
|
||||
|
||||
/*
|
||||
* XXXGL: this function has too much copypaste of inotify_create_watches().
|
||||
* We need to split out inotify stuff from monitor.c into monitor_inotify.c,
|
||||
* compile the latter on Linux and this file on FreeBSD, and keep monitor.c
|
||||
* itself platform independent.
|
||||
* XXXGL: this function has some copypaste with inotify_create_watches().
|
||||
* We need to push more code to platform independent start_monitor()
|
||||
* in minidlna.c.
|
||||
*/
|
||||
void
|
||||
kqueue_monitor_start()
|
||||
monitor_start()
|
||||
{
|
||||
struct media_dir_s *media_path;
|
||||
char **result;
|
||||
@ -280,3 +279,8 @@ kqueue_monitor_start()
|
||||
monitor_add_watch(0, result[i]);
|
||||
sqlite3_free_table(result);
|
||||
}
|
||||
|
||||
void
|
||||
monitor_stop()
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user