enum libusb_hotplug_event

Overview

Since version 1.0.16, LIBUSB_API_VERSION>= 0x01000102. More…

#include <libusb.h>

enum libusb_hotplug_event {
    LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED = 0x01,
    LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT    = 0x02,
};

Detailed Documentation

Since version 1.0.16, LIBUSB_API_VERSION>= 0x01000102.

Hotplug events

Enum Values

LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED

A device has been plugged in and is ready to use.

LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT

A device has left and is no longer available.

It is the user’s responsibility to call libusb_close on any handle associated with a disconnected device. It is safe to call libusb_get_device_descriptor on a device that has left