mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
device: Deprecate fp_device_{supports,has}_* functions for has_feature
We can avoid having multiple device feature-check functions now and just rely on a few. Add uncrustify config to properly handle begin/end deprecation macros.
This commit is contained in:
@@ -526,7 +526,7 @@ libfprint_demo_window_init (LibfprintDemoWindow *window)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!fp_device_supports_capture (g_ptr_array_index (devices, 0)))
|
||||
if (!fp_device_has_feature (g_ptr_array_index (devices, 0), FP_DEVICE_FEATURE_CAPTURE))
|
||||
{
|
||||
libfprint_demo_set_mode (window, NOIMAGING_MODE);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user