diff --git a/libfprint/drivers_api.h b/libfprint/drivers_api.h index 7edc397..453f34f 100644 --- a/libfprint/drivers_api.h +++ b/libfprint/drivers_api.h @@ -30,6 +30,7 @@ #include "fprint.h" #include "fpi-log.h" +#include "fpi-core.h" #include "fpi-ssm.h" #include "fpi-poll.h" #include "fpi-dev.h" @@ -39,10 +40,6 @@ #include "fpi-assembling.h" #include "drivers/driver_ids.h" -libusb_device_handle *fpi_dev_get_usb_dev(struct fp_dev *dev); -void fpi_dev_set_nr_enroll_stages(struct fp_dev *dev, int nr_enroll_stages); -struct fp_print_data *fpi_dev_get_verify_data(struct fp_dev *dev); - enum fp_imgdev_state { IMGDEV_STATE_INACTIVE, IMGDEV_STATE_AWAIT_FINGER_ON, diff --git a/libfprint/core.c b/libfprint/fpi-core.c similarity index 100% rename from libfprint/core.c rename to libfprint/fpi-core.c diff --git a/libfprint/fpi-core.h b/libfprint/fpi-core.h new file mode 100644 index 0000000..1c7b5d7 --- /dev/null +++ b/libfprint/fpi-core.h @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2007-2008 Daniel Drake + * Copyright (C) 2018 Bastien Nocera + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include +#include + +libusb_device_handle *fpi_dev_get_usb_dev(struct fp_dev *dev); +void fpi_dev_set_nr_enroll_stages(struct fp_dev *dev, + int nr_enroll_stages); +struct fp_print_data *fpi_dev_get_verify_data(struct fp_dev *dev); diff --git a/libfprint/meson.build b/libfprint/meson.build index f00d005..260ca6b 100644 --- a/libfprint/meson.build +++ b/libfprint/meson.build @@ -3,9 +3,10 @@ libfprint_sources = [ 'drivers_api.h', 'fpi-async.c', 'fpi-async.h', - 'core.c', 'fpi-assembling.c', 'fpi-assembling.h', + 'fpi-core.c', + 'fpi-core.h', 'fpi-data.c', 'fpi-data.h', 'fpi-dev.c',