Top | ![]() |
![]() |
![]() |
![]() |
GUsbDeviceList *
g_usb_device_list_new (GUsbContext *context
);
g_usb_device_list_new
is deprecated and should not be used in newly-written code.
Creates a new device list.
You will need to call g_usb_device_list_coldplug()
to coldplug the
list of devices after creating a device list.
Since 0.1.0
void
g_usb_device_list_coldplug (GUsbDeviceList *list
);
g_usb_device_list_coldplug
is deprecated and should not be used in newly-written code.
This function does nothing.
Since 0.1.0
GPtrArray *
g_usb_device_list_get_devices (GUsbDeviceList *list
);
g_usb_device_list_get_devices
is deprecated and should not be used in newly-written code.
Since 0.1.0
GUsbDevice * g_usb_device_list_find_by_bus_address (GUsbDeviceList *list
,guint8 bus
,guint8 address
,GError **error
);
g_usb_device_list_find_by_bus_address
is deprecated and should not be used in newly-written code.
Finds a device based on its bus and address values.
Since 0.1.0
GUsbDevice * g_usb_device_list_find_by_vid_pid (GUsbDeviceList *list
,guint16 vid
,guint16 pid
,GError **error
);
g_usb_device_list_find_by_vid_pid
is deprecated and should not be used in newly-written code.
Finds a device based on its bus and address values.
Since 0.1.0
struct GUsbDeviceListClass { GObjectClass parent_class; /* Signals */ void (*device_added) (GUsbDeviceList *list, GUsbDevice *device); void (*device_removed) (GUsbDeviceList *list, GUsbDevice *device); };
“device-added”
signalvoid user_function (GUsbDeviceList *list, GUsbDevice *device, gpointer user_data)
This signal is emitted when a USB device is added.
list |
the GUsbDeviceList instance that emitted the signal |
|
device |
||
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“device-removed”
signalvoid user_function (GUsbDeviceList *list, GUsbDevice *device, gpointer user_data)
This signal is emitted when a USB device is removed.
list |
the GUsbDeviceList instance that emitted the signal |
|
device |
||
user_data |
user data set when the signal handler was connected. |
Flags: Run Last