]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libusb-1.0: Add TransferFlags, use Posix.timeval not GLib.TimeVal 0f9f2987450ebc95b1c6ed4f9225e1b410eaca3d
authorGeert Jordaens <geert.jordaens@telenet.be>
Wed, 19 Jan 2011 20:19:13 +0000 (12:19 -0800)
committerEvan Nemerson <evan@coeus-group.com>
Wed, 19 Jan 2011 21:53:54 +0000 (13:53 -0800)
vapi/libusb-1.0.vapi

index 828a5eb3bcfd8b85ab323dcdb13fd97087233e97..2d61f1fe03686f222ab8d424556b4db33d343c4a 100644 (file)
@@ -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)]