summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@google.com>2012-12-17 14:34:20 -0800
committerGerrit Code Review <noreply-gerritcodereview@google.com>2012-12-17 14:34:20 -0800
commitdea9a93ddd66f8f40ae17d923e5ba0a4b109ac14 (patch)
tree1688890f8d012e9e057a124f7257e157f057f58b /include
parent13306d95f6b70b58bfdd3e1c6d9b1d2a49e6f175 (diff)
parentdea46b6657845a366d13f57c720eab28c9062ab7 (diff)
downloadsystem_core-dea9a93ddd66f8f40ae17d923e5ba0a4b109ac14.zip
system_core-dea9a93ddd66f8f40ae17d923e5ba0a4b109ac14.tar.gz
system_core-dea9a93ddd66f8f40ae17d923e5ba0a4b109ac14.tar.bz2
Merge "libusbhost: permits client polling on inotify wd"
Diffstat (limited to 'include')
-rw-r--r--include/usbhost/usbhost.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/usbhost/usbhost.h b/include/usbhost/usbhost.h
index 9a6b59c..1d67c12 100644
--- a/include/usbhost/usbhost.h
+++ b/include/usbhost/usbhost.h
@@ -72,6 +72,19 @@ struct usb_host_context *usb_host_init(void);
/* Call this to cleanup the USB host library. */
void usb_host_cleanup(struct usb_host_context *context);
+/* Call this to get the inotify file descriptor. */
+int usb_host_get_fd(struct usb_host_context *context);
+
+/* Call this to initialize the usb host context. */
+int usb_host_load(struct usb_host_context *context,
+ usb_device_added_cb added_cb,
+ usb_device_removed_cb removed_cb,
+ usb_discovery_done_cb discovery_done_cb,
+ void *client_data);
+
+/* Call this to read and handle occuring usb event. */
+int usb_host_read_event(struct usb_host_context *context);
+
/* Call this to monitor the USB bus for new and removed devices.
* This is intended to be called from a dedicated thread,
* as it will not return until one of the callbacks returns true.