mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
fp-device: Remove confusing success parameter on FpMatchCb
This was added as alias to the error check, but given we're passing to the callback both the error and the match itself, we can just avoid adding an extra parameter that could be confusing (as may imply that the matching happened). Also clarify the documentation and ensure that the match value is properly set in tests.
This commit is contained in:
@@ -1281,7 +1281,7 @@ fpi_device_verify_report (FpDevice *device,
|
||||
}
|
||||
|
||||
if (call_cb && data->match_cb)
|
||||
data->match_cb (device, data->error == NULL, data->match, data->print, data->match_data, data->error);
|
||||
data->match_cb (device, data->match, data->print, data->match_data, data->error);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1357,5 +1357,5 @@ fpi_device_identify_report (FpDevice *device,
|
||||
}
|
||||
|
||||
if (call_cb && data->match_cb)
|
||||
data->match_cb (device, data->error == NULL, data->match, data->print, data->match_data, data->error);
|
||||
data->match_cb (device, data->match, data->print, data->match_data, data->error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user