From 78b8602cf63b5302502e40742c39c2dc77886cbe Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 22 May 2018 15:52:52 +0200 Subject: [PATCH] lib: Make fp_minutia an opaque structure Nothing uses the elements of the structure, so make it opaque. --- libfprint/fp_internal.h | 15 +++++++++++++++ libfprint/fprint.h | 18 +++--------------- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/libfprint/fp_internal.h b/libfprint/fp_internal.h index 1b7c4a4..52ea50e 100644 --- a/libfprint/fp_internal.h +++ b/libfprint/fp_internal.h @@ -368,6 +368,21 @@ gboolean fpi_print_data_compatible(uint16_t driver_id1, uint32_t devtype1, enum fp_print_data_type type1, uint16_t driver_id2, uint32_t devtype2, enum fp_print_data_type type2); +struct fp_minutia { + int x; + int y; + int ex; + int ey; + int direction; + double reliability; + int type; + int appearing; + int feature_id; + int *nbrs; + int *ridge_counts; + int num_nbrs; +}; + struct fp_minutiae { int alloc; int num; diff --git a/libfprint/fprint.h b/libfprint/fprint.h index 67e2870..51cb79c 100644 --- a/libfprint/fprint.h +++ b/libfprint/fprint.h @@ -347,22 +347,10 @@ uint32_t fp_print_data_get_devtype(struct fp_print_data *data); /** * fp_minutia: * - * FIXME + * #fp_minutia is an opaque structure type. You must access it using the + * functions below. */ -struct fp_minutia { - int x; - int y; - int ex; - int ey; - int direction; - double reliability; - int type; - int appearing; - int feature_id; - int *nbrs; - int *ridge_counts; - int num_nbrs; -}; +struct fp_minutia; int fp_img_get_height(struct fp_img *img); int fp_img_get_width(struct fp_img *img);