mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
cleanup: Use static functions for non-declared methods
This commit is contained in:
@@ -686,7 +686,7 @@ enum activate_states {
|
|||||||
ACTIVATE_NUM_STATES,
|
ACTIVATE_NUM_STATES,
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
static void
|
||||||
activate_read_regs_cb (FpImageDevice *dev, GError *error,
|
activate_read_regs_cb (FpImageDevice *dev, GError *error,
|
||||||
unsigned char *regs, void *user_data)
|
unsigned char *regs, void *user_data)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
#include "drivers_api.h"
|
#include "drivers_api.h"
|
||||||
#include "elan.h"
|
#include "elan.h"
|
||||||
|
|
||||||
unsigned char
|
static unsigned char
|
||||||
elan_get_pixel (struct fpi_frame_asmbl_ctx *ctx,
|
elan_get_pixel (struct fpi_frame_asmbl_ctx *ctx,
|
||||||
struct fpi_frame *frame, unsigned int x,
|
struct fpi_frame *frame, unsigned int x,
|
||||||
unsigned int y)
|
unsigned int y)
|
||||||
@@ -91,7 +91,7 @@ G_DECLARE_FINAL_TYPE (FpiDeviceElan, fpi_device_elan, FPI, DEVICE_ELAN,
|
|||||||
FpImageDevice);
|
FpImageDevice);
|
||||||
G_DEFINE_TYPE (FpiDeviceElan, fpi_device_elan, FP_TYPE_IMAGE_DEVICE);
|
G_DEFINE_TYPE (FpiDeviceElan, fpi_device_elan, FP_TYPE_IMAGE_DEVICE);
|
||||||
|
|
||||||
int
|
static int
|
||||||
cmp_short (const void *a, const void *b)
|
cmp_short (const void *a, const void *b)
|
||||||
{
|
{
|
||||||
return (int) (*(short *) a - *(short *) b);
|
return (int) (*(short *) a - *(short *) b);
|
||||||
|
|||||||
@@ -1386,7 +1386,7 @@ typedef struct
|
|||||||
FpDevice *device;
|
FpDevice *device;
|
||||||
} FpDeviceTimeoutSource;
|
} FpDeviceTimeoutSource;
|
||||||
|
|
||||||
void
|
static void
|
||||||
timeout_finalize (GSource *source)
|
timeout_finalize (GSource *source)
|
||||||
{
|
{
|
||||||
FpDeviceTimeoutSource *timeout_source = (FpDeviceTimeoutSource *) source;
|
FpDeviceTimeoutSource *timeout_source = (FpDeviceTimeoutSource *) source;
|
||||||
|
|||||||
@@ -298,7 +298,7 @@ fpi_usb_transfer_fill_interrupt_full (FpiUsbTransfer *transfer,
|
|||||||
transfer->free_buffer = free_func;
|
transfer->free_buffer = free_func;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
transfer_finish_cb (GObject *source_object, GAsyncResult *res, gpointer user_data)
|
transfer_finish_cb (GObject *source_object, GAsyncResult *res, gpointer user_data)
|
||||||
{
|
{
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user