fpi-device: Introduce a properly defined fpi_device_emulation_mode_enabled()

Drivers may do some adjustments in test mode, initially we wanted to
reduce this to the minimum but the usage of `FP_DEVICE_EMULATION`
exploded, so move this instead into a properly defined variable that:
 - Uses GLib compiler optimizations
 - Is read just once per process
 - Cannot be misused
This commit is contained in:
Marco Trevisan (Treviño)
2026-06-19 15:43:45 +02:00
parent debc6c601e
commit 98fb001883
14 changed files with 53 additions and 15 deletions
+1
View File
@@ -282,6 +282,7 @@ fpi_device_get_current_action
fpi_device_retry_new
fpi_device_error_new
fpi_device_retry_new_msg
fpi_device_emulation_mode_enabled
fpi_device_error_new_msg
fpi_device_get_driver_data
fpi_device_get_enroll_data