[vala] libusb-1.0: Add TransferFlags, use Posix.timeval not GLib.TimeVal
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] libusb-1.0: Add TransferFlags, use Posix.timeval not GLib.TimeVal
- Date: Wed, 19 Jan 2011 21:55:10 +0000 (UTC)
commit 0f9f2987450ebc95b1c6ed4f9225e1b410eaca3d
Author: Geert Jordaens <geert jordaens telenet be>
Date: Wed Jan 19 12:19:13 2011 -0800
libusb-1.0: Add TransferFlags, use Posix.timeval not GLib.TimeVal
vapi/libusb-1.0.vapi | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/vapi/libusb-1.0.vapi b/vapi/libusb-1.0.vapi
index 828a5eb..2d61f1f 100644
--- a/vapi/libusb-1.0.vapi
+++ b/vapi/libusb-1.0.vapi
@@ -128,6 +128,13 @@ namespace LibUSB {
OTHER
}
+ [CCode (cname = "enum libusb_transfer_flags", cprefix = "LIBUSB_TRANSFER_")]
+ public enum TransferFlags {
+ SHORT_NOT_OK,
+ FREE_BUFFER,
+ FREE_TRANSFER
+ }
+
[CCode (cname = "struct libusb_device_descriptor")]
public struct DeviceDescriptor {
public uint8 bLength;
@@ -211,7 +218,7 @@ namespace LibUSB {
}
[CCode (cname = "libusb_open_device_with_vid_pid")]
- public DeviceHandle.from_vid_pid (Context context, uint16 vendor_id, uint16 product_id);
+ public DeviceHandle.from_vid_pid (Context? context, uint16 vendor_id, uint16 product_id);
public unowned Device get_device ();
public int get_configuration (out int config);
public int set_configuration (int configuration);
@@ -261,10 +268,10 @@ namespace LibUSB {
public int event_handler_active ();
public void lock_event_waiters ();
public void unlock_event_waiters ();
- public int wait_for_event (GLib.TimeVal tv);
- public int handle_events_timeout (GLib.TimeVal tv);
+ public int wait_for_event (Posix.timeval tv);
+ public int handle_events_timeout (Posix.timeval tv);
public int handle_events ();
- public int handle_events_locked (GLib.TimeVal tv);
+ public int handle_events_locked (Posix.timeval tv);
public int get_next_timeout (out Posix.timeval tv);
public void set_pollfd_notifiers (pollfd_added_cb added_cb, pollfd_removed_cb removed_cb, void* user_data);
[CCode (array_length = false)]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]