diff --git a/libfprint/fpi-ssm.h b/libfprint/fpi-ssm.h index fe64946..0e18ab6 100644 --- a/libfprint/fpi-ssm.h +++ b/libfprint/fpi-ssm.h @@ -22,7 +22,6 @@ #pragma once #include "fp-device.h" -#include "fpi-usb-transfer.h" /* async drv <--> lib comms */ @@ -101,6 +100,8 @@ int fpi_ssm_get_cur_state (FpiSsm *machine); /* Callbacks to be used by the driver instead of implementing their own * logic. */ +typedef struct _FpiUsbTransfer FpiUsbTransfer; + void fpi_ssm_usb_transfer_cb (FpiUsbTransfer *transfer, FpDevice *device, gpointer unused_data, diff --git a/libfprint/fpi-usb-transfer.h b/libfprint/fpi-usb-transfer.h index 5b8fe9c..09d22e8 100644 --- a/libfprint/fpi-usb-transfer.h +++ b/libfprint/fpi-usb-transfer.h @@ -30,8 +30,7 @@ G_BEGIN_DECLS #define FPI_USB_ENDPOINT_OUT 0x00 typedef struct _FpiUsbTransfer FpiUsbTransfer; - -#include "fpi-ssm.h" +typedef struct _FpiSsm FpiSsm; typedef void (*FpiUsbTransferCallback)(FpiUsbTransfer *transfer, FpDevice *dev,