lib: Make fp_minutia an opaque structure

Nothing uses the elements of the structure, so make it opaque.
This commit is contained in:
Bastien Nocera 2018-05-22 15:52:52 +02:00
parent 83a0a7681b
commit 78b8602cf6
2 changed files with 18 additions and 15 deletions

View file

@ -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;

View file

@ -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);