Commit 97d0a6df authored by Bastien Nocera's avatar Bastien Nocera
Browse files

lib: Add fpi_poll_is_setup() sanity check

This checks whether polling was correctly setup for integration with a
parent a54d020c
......@@ -482,6 +482,12 @@ void fpi_poll_exit(void)
libusb_set_pollfd_notifiers(fpi_usb_ctx, NULL, NULL, NULL);
return (fd_added_cb != NULL && fd_removed_cb != NULL);
fpi_timeout_cancel_all_for_dev(struct fp_dev *dev)
......@@ -48,4 +48,6 @@ void fpi_timeout_set_name(fpi_timeout *timeout,
const char *name);
void fpi_timeout_cancel(fpi_timeout *timeout);
gboolean fpi_poll_is_setup(void);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment