fpi-ssm, fpi-usb-transfer: Use fwd-declarations to avoid headers dependencies

Don't make headers inclusions dependent on each others, given that FpiSsm
depends on FpiUsbTransfer and vice-versa, so fix the dependency cycle by
using forwarded declarations.
This commit is contained in:
Marco Trevisan (Treviño)
2019-12-16 19:44:17 +01:00
parent 2af0531994
commit 68b5c5d98f
2 changed files with 3 additions and 3 deletions

View File

@@ -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,