device: Use meson to generate fprint device permission flags

This commit is contained in:
Marco Trevisan (Treviño)
2020-11-06 18:42:21 +01:00
committed by Benjamin Berg
parent e59f3cbc4f
commit 4c78012103
3 changed files with 14 additions and 42 deletions

View File

@ -45,6 +45,13 @@ typedef enum {
FPRINT_ERROR_NO_SUCH_DEVICE, /* device does not exist */
} FprintError;
typedef enum {
FPRINT_DEVICE_PERMISSION_NONE = 0,
FPRINT_DEVICE_PERMISSION_ENROLL = (1 << 0), /*< nick=net.reactivated.fprint.device.enroll >*/
FPRINT_DEVICE_PERMISSION_SETUSERNAME = (1 << 1), /*< nick=net.reactivated.fprint.device.setusername >*/
FPRINT_DEVICE_PERMISSION_VERIFY = (1 << 2), /*< nick=net.reactivated.fprint.device.verify >*/
} FprintDevicePermission;
/* Manager */
#define FPRINT_TYPE_MANAGER (fprint_manager_get_type())
G_DECLARE_FINAL_TYPE (FprintManager, fprint_manager, FPRINT, MANAGER, GObject)