summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-09-20 15:39:26 +0100
committerPete Batard <pbatard@gmail.com>2010-09-20 15:39:26 +0100
commitdfc99bb006d057f3f64f84ce935f1781e61ba5d7 (patch)
tree1b1e7ec42c08ed2376192e2ea33317f4badb1f23 /examples
parent94039837f6c8bbbf91f053bdecd8efaea236d6f2 (diff)
downloadlibusb-dfc99bb006d057f3f64f84ce935f1781e61ba5d7.tar.gz
replaced LIBUSB_API with LIBUSB_CALL
Diffstat (limited to 'examples')
-rw-r--r--examples/dpfp.c6
-rw-r--r--examples/dpfp_threaded.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/dpfp.c b/examples/dpfp.c
index 04b42ed..af51e0f 100644
--- a/examples/dpfp.c
+++ b/examples/dpfp.c
@@ -149,7 +149,7 @@ static int set_mode(unsigned char data)
return 0;
}
-static void LIBUSB_API cb_mode_changed(struct libusb_transfer *transfer)
+static void LIBUSB_CALL cb_mode_changed(struct libusb_transfer *transfer)
{
if (transfer->status != LIBUSB_TRANSFER_COMPLETED) {
fprintf(stderr, "mode change transfer not completed!\n");
@@ -276,7 +276,7 @@ static int next_state(void)
return 0;
}
-static void LIBUSB_API cb_irq(struct libusb_transfer *transfer)
+static void LIBUSB_CALL cb_irq(struct libusb_transfer *transfer)
{
unsigned char irqtype = transfer->buffer[0];
@@ -315,7 +315,7 @@ static void LIBUSB_API cb_irq(struct libusb_transfer *transfer)
do_exit = 2;
}
-static void LIBUSB_API cb_img(struct libusb_transfer *transfer)
+static void LIBUSB_CALL cb_img(struct libusb_transfer *transfer)
{
if (transfer->status != LIBUSB_TRANSFER_COMPLETED) {
fprintf(stderr, "img transfer status %d?\n", transfer->status);
diff --git a/examples/dpfp_threaded.c b/examples/dpfp_threaded.c
index 54e5ae3..4641a50 100644
--- a/examples/dpfp_threaded.c
+++ b/examples/dpfp_threaded.c
@@ -178,7 +178,7 @@ static int set_mode(unsigned char data)
return 0;
}
-static void LIBUSB_API cb_mode_changed(struct libusb_transfer *transfer)
+static void LIBUSB_CALL cb_mode_changed(struct libusb_transfer *transfer)
{
if (transfer->status != LIBUSB_TRANSFER_COMPLETED) {
fprintf(stderr, "mode change transfer not completed!\n");
@@ -305,7 +305,7 @@ static int next_state(void)
return 0;
}
-static void LIBUSB_API cb_irq(struct libusb_transfer *transfer)
+static void LIBUSB_CALL cb_irq(struct libusb_transfer *transfer)
{
unsigned char irqtype = transfer->buffer[0];
@@ -343,7 +343,7 @@ static void LIBUSB_API cb_irq(struct libusb_transfer *transfer)
request_exit(2);
}
-static void LIBUSB_API cb_img(struct libusb_transfer *transfer)
+static void LIBUSB_CALL cb_img(struct libusb_transfer *transfer)
{
if (transfer->status != LIBUSB_TRANSFER_COMPLETED) {
fprintf(stderr, "img transfer status %d?\n", transfer->status);