Commit a1e46de4 authored by Bastien Nocera's avatar Bastien Nocera
Browse files

lib: Fix examples not working

Remove the sanity check added in commit b1afa9da, having a poll setup
isn't necessary to use timeouts, as long as only sync functions are

Closes: #139
parent 1abe2138
......@@ -91,8 +91,6 @@ struct fpi_timeout {
char *name;
static gboolean fpi_poll_is_setup(void);
static int timeout_sort_fn(gconstpointer _a, gconstpointer _b)
fpi_timeout *a = (fpi_timeout *) _a;
......@@ -167,7 +165,6 @@ fpi_timeout *fpi_timeout_add(unsigned int msec,
int r;
g_return_val_if_fail (dev != NULL, NULL);
g_return_val_if_fail (fpi_poll_is_setup(), NULL);
fp_dbg("in %dms", msec);
......@@ -487,12 +484,6 @@ void fpi_poll_exit(void)
libusb_set_pollfd_notifiers(fpi_usb_ctx, NULL, NULL, NULL);
static gboolean
return (fd_added_cb != NULL && fd_removed_cb != NULL);
fpi_timeout_cancel_all_for_dev(struct fp_dev *dev)
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