[vala] libusb-1.0: make Device a compact class, other minor changes



commit 3f33d23c884092ce95ffb0afaa45292acc46f778
Author: Evan Nemerson <evan coeus-group com>
Date:   Tue May 14 17:41:26 2013 -0700

    libusb-1.0: make Device a compact class, other minor changes

 vapi/libusb-1.0.vapi |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/vapi/libusb-1.0.vapi b/vapi/libusb-1.0.vapi
index 2d61f1f..c317983 100644
--- a/vapi/libusb-1.0.vapi
+++ b/vapi/libusb-1.0.vapi
@@ -212,6 +212,7 @@ namespace LibUSB {
 
        [Compact, CCode (cname = "libusb_device_handle", cprefix = "libusb_", free_function = "libusb_close")]
        public class DeviceHandle {
+               [CCode (cname = "_vala_libusb_device_handle_new")]
                public DeviceHandle (Device device) {
                        DeviceHandle handle;
                        device.open(out handle);
@@ -241,7 +242,7 @@ namespace LibUSB {
                public int interrupt_transfer (uint8 endpoint, uint8[] data, out int transferred, uint 
timeout);
        }
 
-       [CCode (cname = "libusb_device", cprefix = "libusb_", ref_function = "libusb_ref_device", 
unref_function = "libusb_unref_device")]
+       [Compact, CCode (cname = "libusb_device", cprefix = "libusb_", ref_function = "libusb_ref_device", 
unref_function = "libusb_unref_device")]
        public class Device {
                public uint8 get_bus_number ();
                public uint8 get_device_address ();
@@ -256,6 +257,7 @@ namespace LibUSB {
 
        [Compact, CCode (cname = "libusb_context", cprefix = "libusb_", free_function = "libusb_exit")]
        public class Context {
+               protected Context ();
                public static int init (out Context context);
                public void set_debug (int level);
                public ssize_t get_device_list ([CCode (array_length = false)] out Device[] list);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]