Context
Object Hierarchy:
Description:
[ CCode ( type_id = "g_usb_context_get_type ()" ) ]
public class Context : Object, Initable
Content:
Properties:
Static methods:
Creation methods:
Methods:
- public void enumerate ()
Enumerates all the USB devices and adds them to the context.
- public Device find_by_bus_address (uint8 bus, uint8 address) throws Error
Finds a device based on its bus and address values.
- public Device find_by_platform_id (string platform_id) throws Error
Finds a device based on its platform id value.
- public Device find_by_vid_pid (uint16 vid, uint16 pid) throws Error
Finds a device based on its bus and address values.
- public GenericArray<Device> get_devices ()
- public ContextFlags get_flags ()
Sets the flags to use for the context.
- public uint get_hotplug_poll_interval ()
Gets the poll interval for platforms like Windows that do not support
`LIBUSB_CAP_HAS_HOTPLUG`.
- public unowned MainContext get_main_context ()
Gets the internal GMainContext to use for synchronous methods.
- public unowned Source get_source (MainContext main_ctx)
This function does nothing.
- public void set_debug (LogLevelFlags flags)
Sets the debug flags which control what is logged to the console.
- public void set_flags (ContextFlags flags)
Sets the flags to use for the context.
- public void set_hotplug_poll_interval (uint hotplug_poll_interval)
Sets the poll interval for platforms like Windows that do not support
`LIBUSB_CAP_HAS_HOTPLUG`.
- public void set_main_context (MainContext main_ctx)
Sets the internal GMainContext to use for synchronous methods.
- public Device wait_for_replug (Device device, uint timeout_ms) throws Error
Waits for the device to be replugged.
Signals:
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface GLib.Initable