fpi-ssm: Add a usb transfer callback with data as weak pointer

Allow to pass a double-pointer to be nullified as the transfer data in order
to mark it as NULL when the transfer is done.

This is useful if we're keeping the transfer around in order to check that
no one is currently running.
This commit is contained in:
Marco Trevisan (Treviño)
2019-11-27 19:36:24 +01:00
parent 2642fc6560
commit 65d0d5e3e0
2 changed files with 34 additions and 1 deletions

View File

@@ -91,5 +91,9 @@ void fpi_ssm_next_state_timeout_cb (FpDevice *dev,
void *data);
void fpi_ssm_usb_transfer_cb (FpiUsbTransfer *transfer,
FpDevice *device,
gpointer user_data,
gpointer user_date,
GError *error);
void fpi_ssm_usb_transfer_with_weak_pointer_cb (FpiUsbTransfer *transfer,
FpDevice *device,
gpointer weak_ptr,
GError *error);