Context
Object Hierarchy:
Description:
[ CCode ( cname = "libusb_context" , cprefix = "libusb_" , free_function = "libusb_exit" ) ]
[ Compact ]
public class Context
Content:
Static methods:
- public static Error init (out Context context)
Creation methods:
Methods:
- public ssize_t _get_device_list (out Device[] list)
- public Error event_handler_active ()
- public Error event_handling_ok ()
- public Error get_container_id_descriptor (BosDevCapabilityDescriptor dev_cap, out ContainerIdDescriptor container_id)
- public Device[] get_device_list ()
- public Error get_next_timeout (out timeval tv)
- public PollFD[] get_pollfds ()
- public Error get_ss_endpoint_companion_descriptor (EndpointDescriptor config, out SSEndpointCompanionDescriptor ep_comp)
- public Error get_ss_usb_device_capability_descriptor (BosDevCapabilityDescriptor dev_cap, out SSUsbDeviceCapabilityDescriptor usb_2_0_extension)
- public Error get_usb_2_0_extension_descriptor (BosDevCapabilityDescriptor dev_cap, out USB_2_0_ExtensionDescriptor usb_2_0_extension)
- public Error handle_events ()
- public Error handle_events_completed (out int completed)
- public Error handle_events_locked (timeval tv)
- public Error handle_events_timeout (timeval tv)
- public Error handle_events_timeout_completed (timeval tv, out int completed)
- public Error hotplug_deregister_callback (HotCallbackHandle callback_handle)
- public Error hotplug_register_callback (HotPlugEvent events, HotPlugFlags flags, int vendor_id, int product_id, int dev_class, HotPlugCb cb_fn, out HotCallbackHandle callback_handle)
- public void interrupt_event_handler ()
- public void lock_event_waiters ()
- public void lock_events ()
- public DeviceHandle open_device_with_vid_pid (uint16 vendor_id, uint16 product_id)
- public Error pollfds_handle_timeouts ()
- public void set_debug (LogLevel level)
- public void set_pollfd_notifiers (pollfd_added_cb added_cb, pollfd_removed_cb removed_cb, void* user_data)
- public Error try_lock_events ()
- public void unlock_event_waiters ()
- public void unlock_events ()
- public Error wait_for_event (timeval tv)