Commit graph

8 commits

Author SHA1 Message Date
Pete Batard
0e177f22fc dpfp_threaded: return instead of pthread_exit() to avoid Cygwin warning 2011-06-13 22:05:34 +02:00
Ludovic Rousseau
2aa8984e59 examples: #include <libusb.h> without directory name
The libusb-1.0 directory name belongs in the compile command, e.g.
via pkg-config --cflags. Fixes #58.
2010-11-22 05:25:53 +01:00
Peter Stuge
678c242705 examples: Silence warnings about return value of fwrite() 2010-10-16 14:22:30 +02:00
Pete Batard
29f9f9e3af Introduced calling convention (for Windows)
Under Windows, a variety of compilers and configurations are available,
meaning that the manner of parameter passing (e.g. registers vs stack)
can vary.

Match the Windows API calling convention and document this appropriately.
This calling convention will be used regardless of the configuration of
the user's development platform.

The only user-level complication is that all functions used as libusb
callbacks must use the same calling convention as libusb. The
LIBUSB_CALL macro is provided to make this easy.

Signed-off-by: Michael Plante <michael.plante@gmail.com>
Signed-off-by: Pete Batard <pbatard@gmail.com>
[dsd: slight change of strategy, add documentation]
2010-08-23 18:48:55 -06:00
Pete Batard
33cd2f68b4 removed trailing whitespaces 2010-08-06 21:44:10 -06:00
Daniel Drake
1df713d622 Introduce contexts to the API
Suggested by David Zeuthen. This allows multiple libraries in the same
process to independently use libusb without interfering.
2008-06-26 22:42:59 -05:00
Daniel Drake
7ac0a405b4 Remove libusb_cancel_transfer_sync
This wasn't a particularly nice API. Cancellation should be handled by
the completion handler.
2008-04-29 12:08:35 +01:00
Daniel Drake
e12618c79d add threaded example program 2008-04-19 16:24:21 +01:00