mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
Unhide fprint_data buffer from drivers
May as well keep things out in the open.
This commit is contained in:
@@ -33,11 +33,6 @@ struct fp_print_data *fpi_print_data_new(struct fp_dev *dev, size_t length)
|
||||
return data;
|
||||
}
|
||||
|
||||
unsigned char *fpi_print_data_get_buffer(struct fp_print_data *data)
|
||||
{
|
||||
return data->buffer;
|
||||
}
|
||||
|
||||
API_EXPORTED void fp_print_data_free(struct fp_print_data *data)
|
||||
{
|
||||
g_free(data);
|
||||
|
||||
@@ -606,7 +606,6 @@ static int enroll(struct fp_dev *dev, gboolean initial,
|
||||
|
||||
if (result == FP_ENROLL_COMPLETE) {
|
||||
struct fp_print_data *fdata;
|
||||
unsigned char *buf;
|
||||
|
||||
r = send_cmd28(dev, 0x00, poll_data, sizeof(poll_data));
|
||||
if (r < 0)
|
||||
@@ -634,8 +633,7 @@ static int enroll(struct fp_dev *dev, gboolean initial,
|
||||
}
|
||||
|
||||
fdata = fpi_print_data_new(dev, data_len - sizeof(scan_comp));
|
||||
buf = fpi_print_data_get_buffer(fdata);
|
||||
memcpy(buf, data + sizeof(scan_comp), data_len - sizeof(scan_comp));
|
||||
memcpy(fdata->buffer, data + sizeof(scan_comp), data_len - sizeof(scan_comp));
|
||||
*_data = fdata;
|
||||
comp_out:
|
||||
g_free(data);
|
||||
|
||||
Reference in New Issue
Block a user