Class
GUsbContext
Instance methods
g_usb_context_get_hotplug_poll_interval
Gets the poll interval for platforms like Windows that do not support LIBUSB_CAP_HAS_HOTPLUG
.
since: 0.3.10
g_usb_context_get_main_context
Gets the internal GMainContext to use for synchronous methods. By default the value is set to the value of g_main_context_default().
since: 0.2.5
g_usb_context_load_with_tag
Loads any devices with a specified tag into the context from a JSON object.
since: 0.4.1
g_usb_context_save_with_tag
Saves any devices with a specified tag into an existing JSON builder.
since: 0.4.1
g_usb_context_set_debug
Sets the debug flags which control what is logged to the console.
since: 0.1.0
g_usb_context_set_flags
Sets the flags to use for the context. These should be set before
g_usb_context_enumerate()
is called.
since: 0.2.11
g_usb_context_set_hotplug_poll_interval
Sets the poll interval for platforms like Windows that do not support LIBUSB_CAP_HAS_HOTPLUG
.
This defaults to 1000ms and can be changed before or after g_usb_context_enumerate()
has been called.
since: 0.3.10
g_usb_context_set_main_context
Sets the internal GMainContext to use for synchronous methods.
since: 0.2.5
g_usb_context_wait_for_replug
Waits for the device to be replugged. It may come back with a different VID:PID.
since: 0.2.9
Methods inherited from GInitable (1)
g_initable_init
Initializes the object implementing the interface.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct GUsbContextClass {
GObjectClass parent_class;
void (* device_added) (
GUsbContext* self,
GUsbDevice* device
);
void (* device_removed) (
GUsbContext* self,
GUsbDevice* device
);
void (* device_changed) (
GUsbContext* self,
GUsbDevice* device
);
}
No description available.
Class members
parent_class: GObjectClass
No description available.
device_added: void (* device_added) ( GUsbContext* self, GUsbDevice* device )
No description available.
device_removed: void (* device_removed) ( GUsbContext* self, GUsbDevice* device )
No description available.
device_changed: void (* device_changed) ( GUsbContext* self, GUsbDevice* device )
No description available.