From b5f175b78e41b4a3c0dbf0bd099a60c3b2e0a644 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 29 Nov 2018 15:28:38 +0100 Subject: [PATCH] lib: Move action state functions to correct C file --- libfprint/fpi-dev-img.c | 25 +++++++++++++++++++++++++ libfprint/fpi-img.c | 25 ------------------------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/libfprint/fpi-dev-img.c b/libfprint/fpi-dev-img.c index 2a64075..2a57686 100644 --- a/libfprint/fpi-dev-img.c +++ b/libfprint/fpi-dev-img.c @@ -39,6 +39,31 @@ #define BOZORTH3_DEFAULT_THRESHOLD 40 #define IMG_ENROLL_STAGES 5 +enum fp_imgdev_enroll_state +fpi_imgdev_get_action_state(struct fp_img_dev *imgdev) +{ + return imgdev->action_state; +} + +enum fp_imgdev_action +fpi_imgdev_get_action(struct fp_img_dev *imgdev) +{ + return imgdev->action; +} + +int +fpi_imgdev_get_action_result(struct fp_img_dev *imgdev) +{ + return imgdev->action_result; +} + +void +fpi_imgdev_set_action_result(struct fp_img_dev *imgdev, + int action_result) +{ + imgdev->action_result = action_result; +} + static int img_dev_open(struct fp_dev *dev, unsigned long driver_data) { struct fp_img_dev *imgdev = g_malloc0(sizeof(*imgdev)); diff --git a/libfprint/fpi-img.c b/libfprint/fpi-img.c index 7b9354e..b4677db 100644 --- a/libfprint/fpi-img.c +++ b/libfprint/fpi-img.c @@ -615,31 +615,6 @@ API_EXPORTED int fp_minutia_get_coords(struct fp_minutia *minutia, int *coord_x, return 0; } -enum fp_imgdev_enroll_state -fpi_imgdev_get_action_state(struct fp_img_dev *imgdev) -{ - return imgdev->action_state; -} - -enum fp_imgdev_action -fpi_imgdev_get_action(struct fp_img_dev *imgdev) -{ - return imgdev->action; -} - -int -fpi_imgdev_get_action_result(struct fp_img_dev *imgdev) -{ - return imgdev->action_result; -} - -void -fpi_imgdev_set_action_result(struct fp_img_dev *imgdev, - int action_result) -{ - imgdev->action_result = action_result; -} - /* Calculate squared standand deviation */ int fpi_std_sq_dev(const unsigned char *buf, int size) {