static void sighandler(int signum)
{
+ (void)signum;
+
do_exit = 1;
}
int r = 0;
printf("poll thread running\n");
+ (void)arg;
+
while (!do_exit) {
struct timeval tv = { 1, 0 };
r = libusb_handle_events_timeout(NULL, &tv);
static void sighandler(int signum)
{
+ (void)signum;
+
request_exit(1);
}
struct libusb_device_descriptor desc;
int rc;
+ (void)ctx;
+ (void)dev;
+ (void)event;
+ (void)user_data;
+
rc = libusb_get_device_descriptor(dev, &desc);
if (LIBUSB_SUCCESS != rc) {
fprintf (stderr, "Error getting device descriptor\n");
static int LIBUSB_CALL hotplug_callback_detach(libusb_context *ctx, libusb_device *dev, libusb_hotplug_event event, void *user_data)
{
+ (void)ctx;
+ (void)dev;
+ (void)event;
+ (void)user_data;
+
printf ("Device detached\n");
if (handle) {
}
static void darwin_devices_attached (void *ptr, io_iterator_t add_devices) {
+ UNUSED(ptr);
struct libusb_context *ctx;
io_service_t service;
}
static void darwin_devices_detached (void *ptr, io_iterator_t rem_devices) {
+ UNUSED(ptr);
struct libusb_device *dev = NULL;
struct libusb_context *ctx;
struct darwin_cached_device *old_device;
-#define LIBUSB_NANO 11234
+#define LIBUSB_NANO 11235