From d078c7817130a503f6577e318f96df6521586877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 17 Dec 2019 20:07:02 +0100 Subject: [PATCH] fpi: Add paddings to the private structs --- libfprint/fpi-assembling.h | 1 + libfprint/fpi-device.h | 8 ++++++++ libfprint/fpi-image-device.h | 4 ++++ libfprint/fpi-usb-transfer.h | 4 ++++ 4 files changed, 17 insertions(+) diff --git a/libfprint/fpi-assembling.h b/libfprint/fpi-assembling.h index 295e3159..6e1b7071 100644 --- a/libfprint/fpi-assembling.h +++ b/libfprint/fpi-assembling.h @@ -110,6 +110,7 @@ struct fpi_line_asmbl_ctx unsigned char (*get_pixel)(struct fpi_line_asmbl_ctx *ctx, GSList *line, unsigned int x); + gpointer _padding_dummy[32]; }; FpImage *fpi_assemble_lines (struct fpi_line_asmbl_ctx *ctx, diff --git a/libfprint/fpi-device.h b/libfprint/fpi-device.h index 3d66ee58..fa8ddf15 100644 --- a/libfprint/fpi-device.h +++ b/libfprint/fpi-device.h @@ -45,6 +45,10 @@ struct _FpIdEntry const gchar *virtual_envvar; }; guint64 driver_data; + + /*< private >*/ + /* padding for future expansion */ + gpointer _padding_dummy[16]; }; /** @@ -129,6 +133,10 @@ struct _FpDeviceClass void (*delete) (FpDevice * device); void (*cancel) (FpDevice *device); + + /*< private >*/ + /* padding for future expansion */ + gpointer _padding_dummy[32]; }; /** diff --git a/libfprint/fpi-image-device.h b/libfprint/fpi-image-device.h index 155390de..864cb905 100644 --- a/libfprint/fpi-image-device.h +++ b/libfprint/fpi-image-device.h @@ -93,6 +93,10 @@ struct _FpImageDeviceClass void (*change_state) (FpImageDevice *dev, FpiImageDeviceState state); void (*deactivate) (FpImageDevice *dev); + + /*< private >*/ + /* padding for future expansion */ + gpointer _padding_dummy[32]; }; void fpi_image_device_set_bz3_threshold (FpImageDevice *self, diff --git a/libfprint/fpi-usb-transfer.h b/libfprint/fpi-usb-transfer.h index 09d22e85..c69acfcb 100644 --- a/libfprint/fpi-usb-transfer.h +++ b/libfprint/fpi-usb-transfer.h @@ -101,6 +101,10 @@ struct _FpiUsbTransfer /* Data free function */ GDestroyNotify free_buffer; + + /*< private >*/ + /* padding for future expansion */ + gpointer _padding_dummy[32]; }; GType fpi_usb_transfer_get_type (void) G_GNUC_CONST;