|
MPD
0.20.18
|
#include <InotifySource.hxx>
Public Member Functions | |
| InotifySource (EventLoop &_loop, mpd_inotify_callback_t callback, void *ctx) | |
| Creates a new inotify source and registers it in the EventLoop. More... | |
| ~InotifySource () | |
| int | Add (const char *path_fs, unsigned mask) |
| Adds a path to the notify list. More... | |
| void | Remove (unsigned wd) |
| Removes a path from the notify list. More... | |
Definition at line 31 of file InotifySource.hxx.
| InotifySource::InotifySource | ( | EventLoop & | _loop, |
| mpd_inotify_callback_t | callback, | ||
| void * | ctx | ||
| ) |
Creates a new inotify source and registers it in the EventLoop.
Throws #std::system_error on error.
| callback | a callback invoked for events received from the kernel |
|
inline |
Definition at line 48 of file InotifySource.hxx.
| int InotifySource::Add | ( | const char * | path_fs, |
| unsigned | mask | ||
| ) |
Adds a path to the notify list.
Throws #std::system_error on error.
| void InotifySource::Remove | ( | unsigned | wd | ) |
Removes a path from the notify list.
| wd | the watch descriptor returned by mpd_inotify_source_add() |
1.8.14