Commit 700c5791 authored by Bastien Nocera's avatar Bastien Nocera

lib: Async functions cannot be started without a mainloop

No mainloop, no async.
parent 97d0a6df
......@@ -21,6 +21,7 @@
#include "fp_internal.h"
#include "fpi-async.h"
#include "fpi-poll.h"
#include <config.h>
#include <errno.h>
......@@ -162,6 +163,7 @@ API_EXPORTED int fp_async_enroll_start(struct fp_dev *dev,
int r;
g_return_val_if_fail(dev != NULL, -ENODEV);
g_return_val_if_fail (fpi_poll_is_setup(), -EIO);
drv = dev->drv;
......@@ -270,6 +272,7 @@ API_EXPORTED int fp_async_verify_start(struct fp_dev *dev,
int r;
g_return_val_if_fail(dev != NULL, -ENODEV);
g_return_val_if_fail (fpi_poll_is_setup(), -EIO);
drv = dev->drv;
......@@ -396,6 +399,7 @@ API_EXPORTED int fp_async_identify_start(struct fp_dev *dev,
int r;
g_return_val_if_fail(dev != NULL, -ENODEV);
g_return_val_if_fail (fpi_poll_is_setup(), -EIO);
drv = dev->drv;
......@@ -522,6 +526,7 @@ API_EXPORTED int fp_async_capture_start(struct fp_dev *dev, int unconditional,
int r;
g_return_val_if_fail(dev != NULL, -ENODEV);
g_return_val_if_fail (fpi_poll_is_setup(), -EIO);
drv = dev->drv;
......
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