2019-07-03 21:29:05 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "fpi-enums.h"
|
|
|
|
#include "fp-device.h"
|
|
|
|
#include "fp-print.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
/**
|
2019-12-16 21:45:00 +00:00
|
|
|
* FpiPrintType:
|
|
|
|
* @FPI_PRINT_UNDEFINED: Undefined type, this happens prior to enrollment
|
|
|
|
* @FPI_PRINT_RAW: A raw print where the data is directly compared
|
|
|
|
* @FPI_PRINT_NBIS: NBIS minutiae comparison
|
2019-07-03 21:29:05 +00:00
|
|
|
*/
|
|
|
|
typedef enum {
|
2019-12-16 21:45:00 +00:00
|
|
|
FPI_PRINT_UNDEFINED = 0,
|
|
|
|
FPI_PRINT_RAW,
|
|
|
|
FPI_PRINT_NBIS,
|
|
|
|
} FpiPrintType;
|
2019-07-03 21:29:05 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* FpiMatchResult:
|
2020-04-14 11:50:07 +00:00
|
|
|
* @FPI_MATCH_ERROR: An error occurred during matching
|
2019-07-03 21:29:05 +00:00
|
|
|
* @FPI_MATCH_FAIL: The prints did not match
|
2019-12-05 09:53:22 +00:00
|
|
|
* @FPI_MATCH_SUCCESS: The prints matched
|
2019-07-03 21:29:05 +00:00
|
|
|
*/
|
|
|
|
typedef enum {
|
2019-12-05 09:53:22 +00:00
|
|
|
FPI_MATCH_ERROR = -1, /* -1 for g_task_propagate_int */
|
2019-07-03 21:29:05 +00:00
|
|
|
FPI_MATCH_FAIL,
|
2019-12-05 09:53:22 +00:00
|
|
|
FPI_MATCH_SUCCESS,
|
2019-07-03 21:29:05 +00:00
|
|
|
} FpiMatchResult;
|
|
|
|
|
|
|
|
void fpi_print_add_print (FpPrint *print,
|
|
|
|
FpPrint *add);
|
|
|
|
|
2019-12-16 21:45:00 +00:00
|
|
|
void fpi_print_set_type (FpPrint *print,
|
|
|
|
FpiPrintType type);
|
2019-07-03 21:29:05 +00:00
|
|
|
void fpi_print_set_device_stored (FpPrint *print,
|
|
|
|
gboolean device_stored);
|
|
|
|
|
|
|
|
gboolean fpi_print_add_from_image (FpPrint *print,
|
|
|
|
FpImage *image,
|
|
|
|
GError **error);
|
|
|
|
|
|
|
|
FpiMatchResult fpi_print_bz3_match (FpPrint * template,
|
2019-12-02 16:02:07 +00:00
|
|
|
FpPrint * print,
|
2019-07-03 21:29:05 +00:00
|
|
|
gint bz3_threshold,
|
|
|
|
GError **error);
|
|
|
|
|
2020-04-20 14:38:39 +00:00
|
|
|
/* Helpers to encode metadata into user ID strings. */
|
|
|
|
gchar * fpi_print_generate_user_id (FpPrint *print);
|
|
|
|
gboolean fpi_print_fill_from_user_id (FpPrint *print,
|
|
|
|
const char *user_id);
|
|
|
|
|
2019-07-03 21:29:05 +00:00
|
|
|
G_END_DECLS
|