From 6f6484fb4565cb7378f610d736ea8263652f67c5 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 11 Jul 2012 14:13:22 +0200 Subject: libusbmuxd: Add function to allow dis-/enabling inotify support (Linux only) --- libusbmuxd/usbmuxd.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libusbmuxd/usbmuxd.h') diff --git a/libusbmuxd/usbmuxd.h b/libusbmuxd/usbmuxd.h index d0dccef..0f7b862 100644 --- a/libusbmuxd/usbmuxd.h +++ b/libusbmuxd/usbmuxd.h @@ -174,6 +174,14 @@ int usbmuxd_recv_timeout(int sfd, char *data, uint32_t len, uint32_t *recv_bytes */ int usbmuxd_recv(int sfd, char *data, uint32_t len, uint32_t *recv_bytes); +/** + * Enable or disable the use of inotify extension. Enabled by default. + * Use 0 to disable and 1 to enable inotify support. + * This only has an effect on linux systems if inotify support has been built + * in. Otherwise and on all other platforms this function has no effect. + */ +void libusbmuxd_set_use_inotify(int set); + void libusbmuxd_set_debug_level(int level); #ifdef __cplusplus -- cgit v1.1-32-gdbae