libusb

Converted/butchered LIBUSB header to a D-Language interface

Public Imports

consts
public import consts;
Undocumented in source.
enums
public import enums;
Undocumented in source.
structs
public import structs;
Undocumented in source.
funcs
public import funcs;
Undocumented in source.

Members

Variables

LIBUSB_ERROR_COUNT
auto LIBUSB_ERROR_COUNT;
Undocumented in source.

Examples

import libusb;
    ...
libusb_context *usbctx;
int rc = libusb_init(&usbctx);
if (libusb_error.LIBUSB_SUCCESS == rc) {
  rc = libusb_has_capability(libusb_capability.LIBUSB_CAP_HAS_HOTPLUG);
    ...
}
else {
 // handle error
}
libusb_exit(usbctx);

See Also

http://www.libusb.org

Notes: Libusb itself is Copyright

  • 2001 Johannes Erdfelt <johannes@erdfelt.com>
  • 2007-2008 Daniel Drake <dsd@gentoo.org>
  • 2012 Pete Batard <pete@akeo.ie>
  • 2012 Nathan Hjelm <hjelmn@cs.unm.edu>

Meta

Authors

Ross Lonstein <lonstein@brightboxcharge.com>