summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Plante <michael.plante@gmail.com>2010-04-15 23:19:44 +0100
committerMichael Plante <michael.plante@gmail.com>2010-04-15 23:19:44 +0100
commit32fb3bae54a2274b1ad4bdf607f4e90804ebb86c (patch)
treea842c626ce50659c4d00cf6243d93cd6bb00ef18
parent5bf154f47d0c83215dee7577fe5b83fc05dfe760 (diff)
downloadlibusb-32fb3bae54a2274b1ad4bdf607f4e90804ebb86c.tar.gz
added missing LIBUSB_API for transfer_cb function calls
-rw-r--r--libusb/libusb.h2
-rw-r--r--libusb/sync.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/libusb/libusb.h b/libusb/libusb.h
index b21a93f..b91b9eb 100644
--- a/libusb/libusb.h
+++ b/libusb/libusb.h
@@ -735,7 +735,7 @@ struct libusb_transfer;
* \param transfer The libusb_transfer struct the callback function is being
* notified about.
*/
-typedef void (*libusb_transfer_cb_fn)(struct libusb_transfer *transfer);
+typedef void (LIBUSB_API *libusb_transfer_cb_fn)(struct libusb_transfer *transfer);
/** \ingroup asyncio
* The generic USB transfer structure. The user populates this structure and
diff --git a/libusb/sync.c b/libusb/sync.c
index a626aa9..1d3796f 100644
--- a/libusb/sync.c
+++ b/libusb/sync.c
@@ -32,7 +32,7 @@
* may wish to consider using the \ref asyncio "asynchronous I/O API" instead.
*/
-static void ctrl_transfer_cb(struct libusb_transfer *transfer)
+static void LIBUSB_API ctrl_transfer_cb(struct libusb_transfer *transfer)
{
int *completed = transfer->user_data;
*completed = 1;
@@ -141,7 +141,7 @@ API_EXPORTED int LIBUSB_API libusb_control_transfer(libusb_device_handle *dev_ha
return r;
}
-static void bulk_transfer_cb(struct libusb_transfer *transfer)
+static void LIBUSB_API bulk_transfer_cb(struct libusb_transfer *transfer)
{
int *completed = transfer->user_data;
*completed = 1;