Valadoc
|
Vala
|
Tutorial
|
API-References
|
Markup
Packages
libusb-1.0
LibUSB
Context
init
event_handler_active
event_handling_ok
get_device_list
get_next_timeout
get_pollfds
handle_events
handle_events_locked
handle_events_timeout
lock_event_waiters
lock_events
open_device_with_vid_pid
set_debug
set_pollfd_notifiers
try_lock_events
unlock_event_waiters
unlock_events
wait_for_event
Context
Object Hierarchy:
Description:
public
class
Context
Namespace:
LibUSB
Package:
libusb-1.0
Content:
Static methods:
public
static
int
init
(
out
Context
context)
Methods:
public
void
set_debug
(
int
level)
public
ssize_t
get_device_list
(
out
Device
[] list)
public
DeviceHandle
open_device_with_vid_pid
(
uint16
vendor_id,
uint16
product_id)
public
int
try_lock_events
()
public
void
lock_events
()
public
void
unlock_events
()
public
int
event_handling_ok
()
public
int
event_handler_active
()
public
void
lock_event_waiters
()
public
void
unlock_event_waiters
()
public
int
wait_for_event
(
timeval
tv)
public
int
handle_events_timeout
(
timeval
tv)
public
int
handle_events
()
public
int
handle_events_locked
(
timeval
tv)
public
int
get_next_timeout
(
out
timeval
tv)
public
void
set_pollfd_notifiers
(
pollfd_added_cb
added_cb,
pollfd_removed_cb
removed_cb,
void
* user_data)
public
weak
PollFD
[]
get_pollfds
()