fp-print: Add FP_FINGER_IS_VALID

This is coming directly from fprintd, but being something generic is better
to have it insinde libfprint itself.
This commit is contained in:
Marco Trevisan (Treviño) 2019-12-19 14:20:00 +01:00
parent c9e1a7f283
commit b8e558452a

View file

@ -28,6 +28,9 @@ G_BEGIN_DECLS
#define FP_TYPE_PRINT (fp_print_get_type ())
G_DECLARE_FINAL_TYPE (FpPrint, fp_print, FP, PRINT, GInitiallyUnowned)
#define FP_FINGER_IS_VALID(finger) \
((finger) >= FP_FINGER_FIRST && (finger) <= FP_FINGER_LAST)
#include "fp-device.h"
/**