diff --git a/doc/libfprint-2-sections.txt b/doc/libfprint-2-sections.txt index 391f1f47..0ea7130d 100644 --- a/doc/libfprint-2-sections.txt +++ b/doc/libfprint-2-sections.txt @@ -75,6 +75,7 @@ fp_device_clear_storage_sync fp_device_suspend_sync fp_device_resume_sync FpDevice +FpTemperature
diff --git a/libfprint/fpi-device.c b/libfprint/fpi-device.c index a1be30c0..cc744f6d 100644 --- a/libfprint/fpi-device.c +++ b/libfprint/fpi-device.c @@ -52,6 +52,7 @@ fp_device_get_instance_private (FpDevice *self) /** * fpi_device_class_auto_initialize_features: + * @device_class: An #FpDeviceClass to initialize * * Initializes the #FpDeviceClass @features flags checking what device vfuncs * are implemented. @@ -1796,7 +1797,7 @@ fpi_device_suspend_completed (FpDevice *device) * current action will be cancelled before the error is forwarded to the * application. * - * It is recommended to set @error to #FP_ERROR_NOT_IMPLEMENTED. + * It is recommended to set @error to #FP_DEVICE_ERROR_NOT_SUPPORTED. */ void fpi_device_suspend_complete (FpDevice *device, diff --git a/libfprint/fpi-device.h b/libfprint/fpi-device.h index ab154bc1..be63c1ce 100644 --- a/libfprint/fpi-device.h +++ b/libfprint/fpi-device.h @@ -38,6 +38,13 @@ typedef enum { /** * FpIdEntry: + * @pid: The USB product ID (for USB devices) + * @vid: The USB vendor ID (for USB devices) + * @virtual_envvar: Environment variable name (for virtual devices) + * @driver_data: Optional driver-specific data, defaults to 0 + * @udev_types: Subtypes for udev-based devices + * @spi_acpi_id: ACPI ID (for SPI devices) + * @hid_id: HID device identifier (for HID devices) * * An entry in the table of supported hardware. For USB devices, the product ID * and vendor ID should be provided. The optional @driver_data field defaults diff --git a/libfprint/fpi-image.h b/libfprint/fpi-image.h index 0c703fb1..fdc376c8 100644 --- a/libfprint/fpi-image.h +++ b/libfprint/fpi-image.h @@ -27,6 +27,7 @@ * @FPI_IMAGE_V_FLIPPED: the image is vertically flipped * @FPI_IMAGE_H_FLIPPED: the image is horizontally flipped * @FPI_IMAGE_COLORS_INVERTED: the colours are inverted + * @FPI_IMAGE_PARTIAL: the image is a partial scan * * Flags used in an #FpImage structure to describe the contained image. * This is useful for image drivers as they can simply set these flags and diff --git a/libfprint/fpi-print.c b/libfprint/fpi-print.c index 00289b4e..e9e6d154 100644 --- a/libfprint/fpi-print.c +++ b/libfprint/fpi-print.c @@ -196,7 +196,7 @@ fpi_print_add_from_image (FpPrint *print, /** * fpi_print_bz3_match: - * @template: A #FpPrint containing one or more prints + * @print_template: A #FpPrint containing one or more prints * @print: A newly scanned #FpPrint to test * @bz3_threshold: The BZ3 match threshold * @error: Return location for error @@ -210,14 +210,17 @@ fpi_print_add_from_image (FpPrint *print, * Returns: Whether the prints match, @error will be set if #FPI_MATCH_ERROR is returned */ FpiMatchResult -fpi_print_bz3_match (FpPrint *template, FpPrint *print, gint bz3_threshold, GError **error) +fpi_print_bz3_match (FpPrint *print_template, + FpPrint *print, + gint bz3_threshold, + GError **error) { struct xyt_struct *pstruct; gint probe_len; gint i; /* XXX: Use a different error type? */ - if (template->type != FPI_PRINT_NBIS || print->type != FPI_PRINT_NBIS) + if (print_template->type != FPI_PRINT_NBIS || print->type != FPI_PRINT_NBIS) { *error = fpi_device_error_new_msg (FP_DEVICE_ERROR_NOT_SUPPORTED, "It is only possible to match NBIS type print data"); @@ -234,11 +237,11 @@ fpi_print_bz3_match (FpPrint *template, FpPrint *print, gint bz3_threshold, GErr pstruct = g_ptr_array_index (print->prints, 0); probe_len = bozorth_probe_init (pstruct); - for (i = 0; i < template->prints->len; i++) + for (i = 0; i < print_template->prints->len; i++) { struct xyt_struct *gstruct; gint score; - gstruct = g_ptr_array_index (template->prints, i); + gstruct = g_ptr_array_index (print_template->prints, i); score = bozorth_to_gallery (probe_len, pstruct, gstruct); fp_dbg ("score %d/%d", score, bz3_threshold); diff --git a/libfprint/fpi-print.h b/libfprint/fpi-print.h index f3e72b40..2b4b6b39 100644 --- a/libfprint/fpi-print.h +++ b/libfprint/fpi-print.h @@ -42,7 +42,7 @@ gboolean fpi_print_add_from_image (FpPrint *print, FpImage *image, GError **error); -FpiMatchResult fpi_print_bz3_match (FpPrint *temp, +FpiMatchResult fpi_print_bz3_match (FpPrint *print_template, FpPrint *print, gint bz3_threshold, GError **error);