doc: Add fpi-async section to the docs

This commit is contained in:
Bastien Nocera 2018-11-09 15:00:10 +01:00
parent 53d2fb3ad2
commit a97ae3bc35
3 changed files with 28 additions and 0 deletions

View file

@ -43,6 +43,7 @@
<xi:include href="xml/fpi-dev-img.xml"/>
<xi:include href="xml/fpi-core.xml"/>
<xi:include href="xml/fpi-core-img.xml"/>
<xi:include href="xml/fpi-async.xml"/>
<xi:include href="xml/fpi-ssm.xml"/>
<xi:include href="xml/fpi-poll.xml"/>
<xi:include href="xml/fpi-img.xml"/>

View file

@ -237,6 +237,25 @@ FP_IMGDRV_SUPPORTS_UNCONDITIONAL_CAPTURE
fp_img_driver
</SECTION>
<SECTION>
<INCLUDE>fpi-async.h</INCLUDE>
<FILE>fpi-async</FILE>
fpi_drvcb_capture_started
fpi_drvcb_capture_stopped
fpi_drvcb_close_complete
fpi_drvcb_enroll_stage_completed
fpi_drvcb_enroll_started
fpi_drvcb_enroll_stopped
fpi_drvcb_identify_started
fpi_drvcb_identify_stopped
fpi_drvcb_open_complete
fpi_drvcb_report_capture_result
fpi_drvcb_report_identify_result
fpi_drvcb_report_verify_result
fpi_drvcb_verify_started
fpi_drvcb_verify_stopped
</SECTION>
<SECTION>
<INCLUDE>fpi-img.h</INCLUDE>
<FILE>fpi-img</FILE>

View file

@ -26,6 +26,14 @@
#include <errno.h>
#include <glib.h>
/**
* SECTION:fpi-async
* @title: Asynchronous operations reporting
*
* Those functions are used by primitive drivers to report back their
* current status. Most drivers, imaging ones, do not need to use them.
*/
/* Drivers call this when device initialisation has completed */
void fpi_drvcb_open_complete(struct fp_dev *dev, int status)
{