libusb.h (98e0ffaefb0f241cda3a72395d3be04192ae0d47) | libusb.h (14b896ce80daad378a70a125ca15c2e23cd8d34b) |
---|---|
1/* $FreeBSD$ */ 2/*- 3 * Copyright (c) 2009 Sylvestre Gallon. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 221 unchanged lines hidden (view full) --- 230struct libusb_transfer; 231struct libusb_device_handle; 232 233struct libusb_pollfd { 234 int fd; 235 short events; 236}; 237 | 1/* $FreeBSD$ */ 2/*- 3 * Copyright (c) 2009 Sylvestre Gallon. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 221 unchanged lines hidden (view full) --- 230struct libusb_transfer; 231struct libusb_device_handle; 232 233struct libusb_pollfd { 234 int fd; 235 short events; 236}; 237 |
238struct libusb_version { 239 const uint16_t major; 240 const uint16_t minor; 241 const uint16_t micro; 242 const uint16_t nano; 243 const char *rc; 244 const char *describe; 245}; 246 |
|
238typedef struct libusb_context libusb_context; 239typedef struct libusb_device libusb_device; 240typedef struct libusb_device_handle libusb_device_handle; 241typedef struct libusb_pollfd libusb_pollfd; 242typedef void (*libusb_pollfd_added_cb) (int fd, short events, void *user_data); 243typedef void (*libusb_pollfd_removed_cb) (int fd, void *user_data); 244 245typedef struct libusb_device_descriptor { --- 133 unchanged lines hidden (view full) --- 379 uint8_t *buffer; 380 int num_iso_packets; 381 struct libusb_iso_packet_descriptor iso_packet_desc[0]; 382} libusb_transfer __aligned(sizeof(void *)); 383 384/* Library initialisation */ 385 386void libusb_set_debug(libusb_context * ctx, int level); | 247typedef struct libusb_context libusb_context; 248typedef struct libusb_device libusb_device; 249typedef struct libusb_device_handle libusb_device_handle; 250typedef struct libusb_pollfd libusb_pollfd; 251typedef void (*libusb_pollfd_added_cb) (int fd, short events, void *user_data); 252typedef void (*libusb_pollfd_removed_cb) (int fd, void *user_data); 253 254typedef struct libusb_device_descriptor { --- 133 unchanged lines hidden (view full) --- 388 uint8_t *buffer; 389 int num_iso_packets; 390 struct libusb_iso_packet_descriptor iso_packet_desc[0]; 391} libusb_transfer __aligned(sizeof(void *)); 392 393/* Library initialisation */ 394 395void libusb_set_debug(libusb_context * ctx, int level); |
396const struct libusb_version *libusb_get_version(void); |
|
387const char *libusb_strerror(int code); 388const char *libusb_error_name(int code); 389int libusb_init(libusb_context ** context); 390void libusb_exit(struct libusb_context *ctx); 391 392/* Device handling and enumeration */ 393 394ssize_t libusb_get_device_list(libusb_context * ctx, libusb_device *** list); --- 100 unchanged lines hidden --- | 397const char *libusb_strerror(int code); 398const char *libusb_error_name(int code); 399int libusb_init(libusb_context ** context); 400void libusb_exit(struct libusb_context *ctx); 401 402/* Device handling and enumeration */ 403 404ssize_t libusb_get_device_list(libusb_context * ctx, libusb_device *** list); --- 100 unchanged lines hidden --- |