mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-06-11 18:38:07 +00:00
58756ab62e
We can check whether each relevant structure element has not changed and that the supported enum and flag values didn't change value.
58 lines
1.7 KiB
C
58 lines
1.7 KiB
C
/*
|
|
* FpDevice - A fingerprint reader device
|
|
* Copyright (C) 2021 Marco Trevisan <marco.trevisan@canonical.com>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
typedef enum {
|
|
FP_FINGER_TODV1_UNKNOWN = 0,
|
|
FP_FINGER_TODV1_LEFT_THUMB,
|
|
FP_FINGER_TODV1_LEFT_INDEX,
|
|
FP_FINGER_TODV1_LEFT_MIDDLE,
|
|
FP_FINGER_TODV1_LEFT_RING,
|
|
FP_FINGER_TODV1_LEFT_LITTLE,
|
|
FP_FINGER_TODV1_RIGHT_THUMB,
|
|
FP_FINGER_TODV1_RIGHT_INDEX,
|
|
FP_FINGER_TODV1_RIGHT_MIDDLE,
|
|
FP_FINGER_TODV1_RIGHT_RING,
|
|
FP_FINGER_TODV1_RIGHT_LITTLE,
|
|
|
|
FP_FINGER_TODV1_FIRST = FP_FINGER_TODV1_LEFT_THUMB,
|
|
FP_FINGER_TODV1_LAST = FP_FINGER_TODV1_RIGHT_LITTLE,
|
|
} FpFingerTODV1;
|
|
|
|
typedef enum {
|
|
FP_FINGER_STATUS_TODV1_NONE = 0,
|
|
FP_FINGER_STATUS_TODV1_NEEDED = 1 << 0,
|
|
FP_FINGER_STATUS_TODV1_PRESENT = 1 << 1,
|
|
} FpFingerStatusFlagsTODV1;
|
|
|
|
/* Private flags */
|
|
|
|
typedef enum {
|
|
FPI_PRINT_TODV1_UNDEFINED = 0,
|
|
FPI_PRINT_TODV1_RAW,
|
|
FPI_PRINT_TODV1_NBIS,
|
|
} FpiPrintTypeTODV1;
|
|
|
|
typedef enum {
|
|
FPI_MATCH_TODV1_ERROR = -1,
|
|
FPI_MATCH_TODV1_FAIL,
|
|
FPI_MATCH_TODV1_SUCCESS,
|
|
} FpiMatchResultTODV1;
|