20 #ifndef MPD_INOTIFY_SOURCE_HXX 21 #define MPD_INOTIFY_SOURCE_HXX 29 const char *
name,
void *ctx);
59 int Add(
const char *path_fs,
unsigned mask);
69 virtual bool OnSocketReady(
unsigned flags)
override;
void(* mpd_inotify_callback_t)(int wd, unsigned mask, const char *name, void *ctx)
An event loop that polls for events on file/socket descriptors.
Monitor events on a socket.
InotifySource(EventLoop &_loop, mpd_inotify_callback_t callback, void *ctx)
Creates a new inotify source and registers it in the EventLoop.
int Add(const char *path_fs, unsigned mask)
Adds a path to the notify list.
An OO wrapper for a UNIX file descriptor.
void Remove(unsigned wd)
Removes a path from the notify list.
const Partition const char * name