lib: Mark fpi_ssm_get_user_data as deprecated

This commit is contained in:
Bastien Nocera 2018-09-27 16:07:58 +02:00
parent 0ace5f64f8
commit 1fd82b5162
2 changed files with 6 additions and 1 deletions

View file

@ -124,6 +124,9 @@ fpi_ssm *fpi_ssm_new(struct fp_dev *dev,
* is called. * is called.
* *
* Returns: a pointer * Returns: a pointer
*
* Deprecated: Make sure your asynchronous functions pass that
* @user_data along.
*/ */
void * void *
fpi_ssm_get_user_data(fpi_ssm *machine) fpi_ssm_get_user_data(fpi_ssm *machine)

View file

@ -28,6 +28,8 @@
#include <glib.h> #include <glib.h>
#include <libusb.h> #include <libusb.h>
#include "fprint.h"
/* async drv <--> lib comms */ /* async drv <--> lib comms */
/** /**
@ -80,7 +82,7 @@ void fpi_ssm_next_state_timeout_cb(struct fp_dev *dev, void *data);
void fpi_ssm_jump_to_state(fpi_ssm *machine, int state); void fpi_ssm_jump_to_state(fpi_ssm *machine, int state);
void fpi_ssm_mark_completed(fpi_ssm *machine); void fpi_ssm_mark_completed(fpi_ssm *machine);
void fpi_ssm_mark_failed(fpi_ssm *machine, int error); void fpi_ssm_mark_failed(fpi_ssm *machine, int error);
void *fpi_ssm_get_user_data(fpi_ssm *machine); void *fpi_ssm_get_user_data(fpi_ssm *machine) LIBFPRINT_DEPRECATED;
int fpi_ssm_get_error(fpi_ssm *machine); int fpi_ssm_get_error(fpi_ssm *machine);
int fpi_ssm_get_cur_state(fpi_ssm *machine); int fpi_ssm_get_cur_state(fpi_ssm *machine);