| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | |||
| 2 | /* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ | ||
| 3 | |||
| 4 | #include "fpi-enums.h" | ||
| 5 | #include "fpi-assembling.h" | ||
| 6 | #include "fpi-byte-reader.h" | ||
| 7 | #include "fpi-byte-utils.h" | ||
| 8 | #include "fpi-byte-writer.h" | ||
| 9 | #include "fpi-compat.h" | ||
| 10 | #include "fpi-context.h" | ||
| 11 | #include "fpi-device.h" | ||
| 12 | #include "fpi-image-device.h" | ||
| 13 | #include "fpi-image.h" | ||
| 14 | #include "fpi-log.h" | ||
| 15 | #include "fpi-minutiae.h" | ||
| 16 | #include "fpi-print.h" | ||
| 17 | #include "fpi-usb-transfer.h" | ||
| 18 | #include "fpi-ssm.h" | ||
| 19 | #include "fpi-spi-transfer.h" | ||
| 20 | |||
| 21 | #define C_ENUM(v) ((gint) v) | ||
| 22 | #define C_FLAGS(v) ((guint) v) | ||
| 23 | |||
| 24 | /* enumerations from "fpi-device.h" */ | ||
| 25 | |||
| 26 | GType | ||
| 27 | ✗ | fpi_device_udev_subtype_flags_get_type (void) | |
| 28 | { | ||
| 29 | ✗ | static gsize gtype_id = 0; | |
| 30 | ✗ | static const GFlagsValue values[] = { | |
| 31 | { C_FLAGS (FPI_DEVICE_UDEV_SUBTYPE_SPIDEV), "FPI_DEVICE_UDEV_SUBTYPE_SPIDEV", "spidev" }, | ||
| 32 | { C_FLAGS (FPI_DEVICE_UDEV_SUBTYPE_HIDRAW), "FPI_DEVICE_UDEV_SUBTYPE_HIDRAW", "hidraw" }, | ||
| 33 | { 0, NULL, NULL } | ||
| 34 | }; | ||
| 35 | ✗ | if (g_once_init_enter (>ype_id)) { | |
| 36 | ✗ | GType new_type = g_flags_register_static (g_intern_static_string ("FpiDeviceUdevSubtypeFlags"), values); | |
| 37 | ✗ | g_once_init_leave (>ype_id, new_type); | |
| 38 | } | ||
| 39 | ✗ | return (GType) gtype_id; | |
| 40 | } | ||
| 41 | |||
| 42 | GType | ||
| 43 | 1026 | fpi_device_action_get_type (void) | |
| 44 | { | ||
| 45 | 1026 | static gsize gtype_id = 0; | |
| 46 | 1026 | static const GEnumValue values[] = { | |
| 47 | { C_ENUM (FPI_DEVICE_ACTION_NONE), "FPI_DEVICE_ACTION_NONE", "none" }, | ||
| 48 | { C_ENUM (FPI_DEVICE_ACTION_PROBE), "FPI_DEVICE_ACTION_PROBE", "probe" }, | ||
| 49 | { C_ENUM (FPI_DEVICE_ACTION_OPEN), "FPI_DEVICE_ACTION_OPEN", "open" }, | ||
| 50 | { C_ENUM (FPI_DEVICE_ACTION_CLOSE), "FPI_DEVICE_ACTION_CLOSE", "close" }, | ||
| 51 | { C_ENUM (FPI_DEVICE_ACTION_ENROLL), "FPI_DEVICE_ACTION_ENROLL", "enroll" }, | ||
| 52 | { C_ENUM (FPI_DEVICE_ACTION_VERIFY), "FPI_DEVICE_ACTION_VERIFY", "verify" }, | ||
| 53 | { C_ENUM (FPI_DEVICE_ACTION_IDENTIFY), "FPI_DEVICE_ACTION_IDENTIFY", "identify" }, | ||
| 54 | { C_ENUM (FPI_DEVICE_ACTION_CAPTURE), "FPI_DEVICE_ACTION_CAPTURE", "capture" }, | ||
| 55 | { C_ENUM (FPI_DEVICE_ACTION_LIST), "FPI_DEVICE_ACTION_LIST", "list" }, | ||
| 56 | { C_ENUM (FPI_DEVICE_ACTION_DELETE), "FPI_DEVICE_ACTION_DELETE", "delete" }, | ||
| 57 | { C_ENUM (FPI_DEVICE_ACTION_CLEAR_STORAGE), "FPI_DEVICE_ACTION_CLEAR_STORAGE", "clear-storage" }, | ||
| 58 | { 0, NULL, NULL } | ||
| 59 | }; | ||
| 60 |
3/4✓ Branch 0 (2→3) taken 120 times.
✓ Branch 1 (2→8) taken 906 times.
✓ Branch 2 (4→5) taken 120 times.
✗ Branch 3 (4→8) not taken.
|
1026 | if (g_once_init_enter (>ype_id)) { |
| 61 | 120 | GType new_type = g_enum_register_static (g_intern_static_string ("FpiDeviceAction"), values); | |
| 62 | 120 | g_once_init_leave (>ype_id, new_type); | |
| 63 | } | ||
| 64 | 1026 | return (GType) gtype_id; | |
| 65 | } | ||
| 66 | |||
| 67 | /* enumerations from "fpi-image-device.h" */ | ||
| 68 | |||
| 69 | GType | ||
| 70 | 912 | fpi_image_device_state_get_type (void) | |
| 71 | { | ||
| 72 | 912 | static gsize gtype_id = 0; | |
| 73 | 912 | static const GEnumValue values[] = { | |
| 74 | { C_ENUM (FPI_IMAGE_DEVICE_STATE_INACTIVE), "FPI_IMAGE_DEVICE_STATE_INACTIVE", "inactive" }, | ||
| 75 | { C_ENUM (FPI_IMAGE_DEVICE_STATE_ACTIVATING), "FPI_IMAGE_DEVICE_STATE_ACTIVATING", "activating" }, | ||
| 76 | { C_ENUM (FPI_IMAGE_DEVICE_STATE_DEACTIVATING), "FPI_IMAGE_DEVICE_STATE_DEACTIVATING", "deactivating" }, | ||
| 77 | { C_ENUM (FPI_IMAGE_DEVICE_STATE_IDLE), "FPI_IMAGE_DEVICE_STATE_IDLE", "idle" }, | ||
| 78 | { C_ENUM (FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON), "FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON", "await-finger-on" }, | ||
| 79 | { C_ENUM (FPI_IMAGE_DEVICE_STATE_CAPTURE), "FPI_IMAGE_DEVICE_STATE_CAPTURE", "capture" }, | ||
| 80 | { C_ENUM (FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF), "FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF", "await-finger-off" }, | ||
| 81 | { 0, NULL, NULL } | ||
| 82 | }; | ||
| 83 |
3/4✓ Branch 0 (2→3) taken 122 times.
✓ Branch 1 (2→8) taken 790 times.
✓ Branch 2 (4→5) taken 122 times.
✗ Branch 3 (4→8) not taken.
|
912 | if (g_once_init_enter (>ype_id)) { |
| 84 | 122 | GType new_type = g_enum_register_static (g_intern_static_string ("FpiImageDeviceState"), values); | |
| 85 | 122 | g_once_init_leave (>ype_id, new_type); | |
| 86 | } | ||
| 87 | 912 | return (GType) gtype_id; | |
| 88 | } | ||
| 89 | |||
| 90 | /* enumerations from "fpi-image.h" */ | ||
| 91 | |||
| 92 | GType | ||
| 93 | ✗ | fpi_image_flags_get_type (void) | |
| 94 | { | ||
| 95 | ✗ | static gsize gtype_id = 0; | |
| 96 | ✗ | static const GFlagsValue values[] = { | |
| 97 | { C_FLAGS (FPI_IMAGE_NONE), "FPI_IMAGE_NONE", "none" }, | ||
| 98 | { C_FLAGS (FPI_IMAGE_V_FLIPPED), "FPI_IMAGE_V_FLIPPED", "v-flipped" }, | ||
| 99 | { C_FLAGS (FPI_IMAGE_H_FLIPPED), "FPI_IMAGE_H_FLIPPED", "h-flipped" }, | ||
| 100 | { C_FLAGS (FPI_IMAGE_COLORS_INVERTED), "FPI_IMAGE_COLORS_INVERTED", "colors-inverted" }, | ||
| 101 | { C_FLAGS (FPI_IMAGE_PARTIAL), "FPI_IMAGE_PARTIAL", "partial" }, | ||
| 102 | { 0, NULL, NULL } | ||
| 103 | }; | ||
| 104 | ✗ | if (g_once_init_enter (>ype_id)) { | |
| 105 | ✗ | GType new_type = g_flags_register_static (g_intern_static_string ("FpiImageFlags"), values); | |
| 106 | ✗ | g_once_init_leave (>ype_id, new_type); | |
| 107 | } | ||
| 108 | ✗ | return (GType) gtype_id; | |
| 109 | } | ||
| 110 | |||
| 111 | /* enumerations from "fpi-print.h" */ | ||
| 112 | |||
| 113 | GType | ||
| 114 | 70 | fpi_print_type_get_type (void) | |
| 115 | { | ||
| 116 | 70 | static gsize gtype_id = 0; | |
| 117 | 70 | static const GEnumValue values[] = { | |
| 118 | { C_ENUM (FPI_PRINT_UNDEFINED), "FPI_PRINT_UNDEFINED", "undefined" }, | ||
| 119 | { C_ENUM (FPI_PRINT_RAW), "FPI_PRINT_RAW", "raw" }, | ||
| 120 | { C_ENUM (FPI_PRINT_NBIS), "FPI_PRINT_NBIS", "nbis" }, | ||
| 121 | { 0, NULL, NULL } | ||
| 122 | }; | ||
| 123 |
2/4✓ Branch 0 (2→3) taken 70 times.
✗ Branch 1 (2→8) not taken.
✓ Branch 2 (4→5) taken 70 times.
✗ Branch 3 (4→8) not taken.
|
70 | if (g_once_init_enter (>ype_id)) { |
| 124 | 70 | GType new_type = g_enum_register_static (g_intern_static_string ("FpiPrintType"), values); | |
| 125 | 70 | g_once_init_leave (>ype_id, new_type); | |
| 126 | } | ||
| 127 | 70 | return (GType) gtype_id; | |
| 128 | } | ||
| 129 | |||
| 130 | GType | ||
| 131 | ✗ | fpi_match_result_get_type (void) | |
| 132 | { | ||
| 133 | ✗ | static gsize gtype_id = 0; | |
| 134 | ✗ | static const GEnumValue values[] = { | |
| 135 | { C_ENUM (FPI_MATCH_ERROR), "FPI_MATCH_ERROR", "error" }, | ||
| 136 | { C_ENUM (FPI_MATCH_FAIL), "FPI_MATCH_FAIL", "fail" }, | ||
| 137 | { C_ENUM (FPI_MATCH_SUCCESS), "FPI_MATCH_SUCCESS", "success" }, | ||
| 138 | { 0, NULL, NULL } | ||
| 139 | }; | ||
| 140 | ✗ | if (g_once_init_enter (>ype_id)) { | |
| 141 | ✗ | GType new_type = g_enum_register_static (g_intern_static_string ("FpiMatchResult"), values); | |
| 142 | ✗ | g_once_init_leave (>ype_id, new_type); | |
| 143 | } | ||
| 144 | ✗ | return (GType) gtype_id; | |
| 145 | } | ||
| 146 | |||
| 147 | /* enumerations from "fpi-usb-transfer.h" */ | ||
| 148 | |||
| 149 | GType | ||
| 150 | ✗ | fpi_transfer_type_get_type (void) | |
| 151 | { | ||
| 152 | ✗ | static gsize gtype_id = 0; | |
| 153 | ✗ | static const GEnumValue values[] = { | |
| 154 | { C_ENUM (FP_TRANSFER_NONE), "FP_TRANSFER_NONE", "none" }, | ||
| 155 | { C_ENUM (FP_TRANSFER_CONTROL), "FP_TRANSFER_CONTROL", "control" }, | ||
| 156 | { C_ENUM (FP_TRANSFER_BULK), "FP_TRANSFER_BULK", "bulk" }, | ||
| 157 | { C_ENUM (FP_TRANSFER_INTERRUPT), "FP_TRANSFER_INTERRUPT", "interrupt" }, | ||
| 158 | { 0, NULL, NULL } | ||
| 159 | }; | ||
| 160 | ✗ | if (g_once_init_enter (>ype_id)) { | |
| 161 | ✗ | GType new_type = g_enum_register_static (g_intern_static_string ("FpiTransferType"), values); | |
| 162 | ✗ | g_once_init_leave (>ype_id, new_type); | |
| 163 | } | ||
| 164 | ✗ | return (GType) gtype_id; | |
| 165 | } | ||
| 166 | |||
| 167 | /* Generated data ends here */ | ||
| 168 | |||
| 169 |