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:
Marco Trevisan (Treviño)
2020-01-16 16:43:56 +01:00
parent 30c783cbeb
commit 0889ec20a8
3 changed files with 40 additions and 29 deletions

View File

@@ -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);
}