New upstream version 0.8.2

This commit is contained in:
Laurent Bigonville
2018-08-12 17:45:45 +02:00
parent 7bf73eb3d0
commit ca30b70d38
10 changed files with 41 additions and 14 deletions
+11
View File
@@ -1,6 +1,17 @@
This file lists notable changes in each release. For the full history of all This file lists notable changes in each release. For the full history of all
changes, see ChangeLog. changes, see ChangeLog.
2018-07-15: v0.8.2 release
* Drivers:
- Add USB ID for TNP Nano USB Fingerprint Reader
- Fix UPEKTS enrollment never finishing on some devices
* Library:
- Fix fp_get_pollfds() retval type, a small ABI change
- Downgrade fatal errors to run-time warnings, as a number of drivers
used to throw silent errors and we made them fatal. Those will now
be visible warnings, hopefully helping with fixing them.
2018-06-12: v0.8.1 release 2018-06-12: v0.8.1 release
- Brown paperbag release to install the udev rules file in the correct - Brown paperbag release to install the udev rules file in the correct
directory if the udev pkg-config file doesn't have a trailing slash directory if the udev pkg-config file doesn't have a trailing slash
+1 -1
View File
@@ -11,7 +11,7 @@
<para>This document is the API reference for the libfprint library.</para> <para>This document is the API reference for the libfprint library.</para>
<para> <para>
The latest version of libfprint, as well as the latest version of The latest version of libfprint, as well as the latest version of
this API reference, is <ulink role="online-location" url="https://www.freedesktop.org/wiki/Software/fprint/libfprint/">available online</ulink>. this API reference, is <ulink role="online-location" url="https://fprint.freedesktop.org/libfprint-dev/">available online</ulink>.
</para> </para>
</releaseinfo> </releaseinfo>
</bookinfo> </bookinfo>
+2 -2
View File
@@ -1,10 +1,10 @@
ent_conf = configuration_data() ent_conf = configuration_data()
ent_conf.set('PACKAGE', 'libfprint') ent_conf.set('PACKAGE', 'libfprint')
ent_conf.set('PACKAGE_BUGREPORT', 'https://bugs.freedesktop.org/enter_bug.cgi?product=libfprint') ent_conf.set('PACKAGE_BUGREPORT', 'https://gitlab.freedesktop.org/libfprint/libfprint/issues')
ent_conf.set('PACKAGE_NAME', 'libfprint') ent_conf.set('PACKAGE_NAME', 'libfprint')
ent_conf.set('PACKAGE_STRING', 'libfprint') ent_conf.set('PACKAGE_STRING', 'libfprint')
ent_conf.set('PACKAGE_TARNAME', 'libfprint-' + meson.project_version()) ent_conf.set('PACKAGE_TARNAME', 'libfprint-' + meson.project_version())
ent_conf.set('PACKAGE_URL', 'https://www.freedesktop.org/wiki/Software/fprint/libfprint/') ent_conf.set('PACKAGE_URL', 'https://fprint.freedesktop.org/')
ent_conf.set('PACKAGE_VERSION', meson.project_version()) ent_conf.set('PACKAGE_VERSION', meson.project_version())
ent_conf.set('PACKAGE_API_VERSION', '1.0') ent_conf.set('PACKAGE_API_VERSION', '1.0')
configure_file(input: 'gtkdocentities.ent.in', output: 'gtkdocentities.ent', configuration: ent_conf) configure_file(input: 'gtkdocentities.ent.in', output: 'gtkdocentities.ent', configuration: ent_conf)
+2 -1
View File
@@ -102,7 +102,7 @@ static void elan_save_frame(struct fp_img_dev *dev)
elandev->num_frames += 1; elandev->num_frames += 1;
} }
/* Transform raw sesnsor data to normalized 8-bit grayscale image. */ /* Transform raw sensor data to normalized 8-bit grayscale image. */
static void elan_process_frame(unsigned short *raw_frame, GSList ** frames) static void elan_process_frame(unsigned short *raw_frame, GSList ** frames)
{ {
unsigned int frame_size = unsigned int frame_size =
@@ -603,6 +603,7 @@ static void dev_deactivate(struct fp_img_dev *dev)
static const struct usb_id id_table[] = { static const struct usb_id id_table[] = {
{.vendor = 0x04f3,.product = 0x0907}, {.vendor = 0x04f3,.product = 0x0907},
{.vendor = 0x04f3,.product = 0x0c26},
{0, 0, 0,}, {0, 0, 0,},
}; };
+3
View File
@@ -1018,6 +1018,9 @@ static void e_handle_resp00(struct fp_dev *dev, unsigned char *data,
case 0x0c: case 0x0c:
case 0x0d: case 0x0d:
case 0x0e: case 0x0e:
case 0x26:
case 0x27:
case 0x2e:
/* if we previously completed a non-last enrollment stage, we'll /* if we previously completed a non-last enrollment stage, we'll
* get this code to indicate successful stage completion */ * get this code to indicate successful stage completion */
if (upekdev->enroll_passed) { if (upekdev->enroll_passed) {
+9 -3
View File
@@ -40,10 +40,16 @@
#define fp_dbg g_debug #define fp_dbg g_debug
#define fp_info g_debug #define fp_info g_debug
#define fp_warn g_warning #define fp_warn g_warning
#define fp_err g_error #define fp_err g_warning
#define BUG_ON(condition) g_assert(!(condition)) #define BUG_ON(condition) G_STMT_START \
#define BUG() g_assert_not_reached() if (condition) { \
char *s; \
s = g_strconcat ("BUG: (", #condition, ")", NULL); \
g_warning ("%s: %s() %s:%d", s, G_STRFUNC, __FILE__, __LINE__); \
g_free (s); \
} G_STMT_END
#define BUG() BUG_ON(1)
enum fp_dev_state { enum fp_dev_state {
DEV_STATE_INITIAL = 0, DEV_STATE_INITIAL = 0,
+9 -3
View File
@@ -42,10 +42,16 @@
#define fp_dbg g_debug #define fp_dbg g_debug
#define fp_info g_debug #define fp_info g_debug
#define fp_warn g_warning #define fp_warn g_warning
#define fp_err g_error #define fp_err g_warning
#define BUG_ON(condition) g_assert(!(condition)) #define BUG_ON(condition) G_STMT_START \
#define BUG() g_assert_not_reached() if (condition) { \
char *s; \
s = g_strconcat ("BUG: (", #condition, ")", NULL); \
g_warning ("%s: %s() %s:%d", s, G_STRFUNC, __FILE__, __LINE__); \
g_free (s); \
} G_STMT_END
#define BUG() BUG_ON(1)
enum fp_dev_state { enum fp_dev_state {
DEV_STATE_INITIAL = 0, DEV_STATE_INITIAL = 0,
+1 -1
View File
@@ -314,7 +314,7 @@ struct fp_pollfd {
int fp_handle_events_timeout(struct timeval *timeout); int fp_handle_events_timeout(struct timeval *timeout);
int fp_handle_events(void); int fp_handle_events(void);
size_t fp_get_pollfds(struct fp_pollfd **pollfds); ssize_t fp_get_pollfds(struct fp_pollfd **pollfds);
int fp_get_next_timeout(struct timeval *tv); int fp_get_next_timeout(struct timeval *tv);
/** /**
+2 -2
View File
@@ -313,12 +313,12 @@ API_EXPORTED int fp_get_next_timeout(struct timeval *tv)
* *
* Returns: the number of pollfds in the resultant list, or negative on error. * Returns: the number of pollfds in the resultant list, or negative on error.
*/ */
API_EXPORTED size_t fp_get_pollfds(struct fp_pollfd **pollfds) API_EXPORTED ssize_t fp_get_pollfds(struct fp_pollfd **pollfds)
{ {
const struct libusb_pollfd **usbfds; const struct libusb_pollfd **usbfds;
const struct libusb_pollfd *usbfd; const struct libusb_pollfd *usbfd;
struct fp_pollfd *ret; struct fp_pollfd *ret;
size_t cnt = 0; ssize_t cnt = 0;
size_t i = 0; size_t i = 0;
usbfds = libusb_get_pollfds(fpi_usb_ctx); usbfds = libusb_get_pollfds(fpi_usb_ctx);
+1 -1
View File
@@ -1,5 +1,5 @@
project('libfprint', [ 'c', 'cpp' ], project('libfprint', [ 'c', 'cpp' ],
version: '0.8.1', version: '0.8.2',
license: 'LGPLv2.1+', license: 'LGPLv2.1+',
default_options: [ default_options: [
'buildtype=debugoptimized', 'buildtype=debugoptimized',