Unhide fprint_data buffer from drivers

May as well keep things out in the open.
This commit is contained in:
Daniel Drake 2007-10-15 22:07:22 +01:00
parent 68bdfc7868
commit f59112d57c
2 changed files with 1 additions and 8 deletions

View file

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

View file

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