00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef MPD_INOTIFY_SOURCE_H
00021 #define MPD_INOTIFY_SOURCE_H
00022
00023 #include <glib.h>
00024
00025 typedef void (*mpd_inotify_callback_t)(int wd, unsigned mask,
00026 const char *name, void *ctx);
00027
00028 struct mpd_inotify_source;
00029
00036 struct mpd_inotify_source *
00037 mpd_inotify_source_new(mpd_inotify_callback_t callback, void *callback_ctx,
00038 GError **error_r);
00039
00040 void
00041 mpd_inotify_source_free(struct mpd_inotify_source *source);
00042
00048 int
00049 mpd_inotify_source_add(struct mpd_inotify_source *source,
00050 const char *path_fs, unsigned mask,
00051 GError **error_r);
00052
00058 void
00059 mpd_inotify_source_rm(struct mpd_inotify_source *source, unsigned wd);
00060
00061 #endif