[vala] gudev-1.0: make GUdev.DeviceNumber inherit from Posix.dev_t



commit 86bc3602371c9c4d3e2078dbec1b3c6ec6d95c24
Author: Evan Nemerson <evan coeus-group com>
Date:   Mon Mar 22 23:58:42 2010 -0700

    gudev-1.0: make GUdev.DeviceNumber inherit from Posix.dev_t

 vapi/Makefile.am                           |    1 +
 vapi/gudev-1.0.deps                        |    1 +
 vapi/gudev-1.0.vapi                        |    7 ++++---
 vapi/packages/gudev-1.0/gudev-1.0.deps     |    1 +
 vapi/packages/gudev-1.0/gudev-1.0.metadata |    1 +
 5 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/vapi/Makefile.am b/vapi/Makefile.am
index ea69931..7b380f9 100644
--- a/vapi/Makefile.am
+++ b/vapi/Makefile.am
@@ -91,6 +91,7 @@ dist_vapi_DATA = \
 	gtkmozembed.vapi \
 	gtksourceview-2.0.deps \
 	gtksourceview-2.0.vapi \
+	gudev-1.0.deps \
 	gudev-1.0.vapi \
 	hal.deps \
 	hal.vapi \
diff --git a/vapi/gudev-1.0.deps b/vapi/gudev-1.0.deps
new file mode 100644
index 0000000..b3188f7
--- /dev/null
+++ b/vapi/gudev-1.0.deps
@@ -0,0 +1 @@
+posix
diff --git a/vapi/gudev-1.0.vapi b/vapi/gudev-1.0.vapi
index 515d028..057ab55 100644
--- a/vapi/gudev-1.0.vapi
+++ b/vapi/gudev-1.0.vapi
@@ -38,7 +38,7 @@ namespace GUdev {
 		public unowned string? get_device_file ();
 		[CCode (array_length = false)]
 		public unowned string[] get_device_file_symlinks ();
-		public unowned GUdev.DeviceNumber get_device_number ();
+		public GUdev.DeviceNumber get_device_number ();
 		public GUdev.DeviceType get_device_type ();
 		public unowned string get_devtype ();
 		public unowned string? get_driver ();
@@ -83,9 +83,10 @@ namespace GUdev {
 		[NoWrapper]
 		public virtual void reserved8 ();
 	}
-	[Compact]
 	[CCode (cheader_filename = "gudev/gudev.h")]
-	public class DeviceNumber {
+	[SimpleType]
+	[IntegerType (rank = 9)]
+	public struct DeviceNumber : Posix.dev_t {
 	}
 	[CCode (cprefix = "G_UDEV_DEVICE_TYPE_", cheader_filename = "gudev/gudev.h")]
 	public enum DeviceType {
diff --git a/vapi/packages/gudev-1.0/gudev-1.0.deps b/vapi/packages/gudev-1.0/gudev-1.0.deps
new file mode 100644
index 0000000..b3188f7
--- /dev/null
+++ b/vapi/packages/gudev-1.0/gudev-1.0.deps
@@ -0,0 +1 @@
+posix
diff --git a/vapi/packages/gudev-1.0/gudev-1.0.metadata b/vapi/packages/gudev-1.0/gudev-1.0.metadata
index 0db19c2..a46be51 100644
--- a/vapi/packages/gudev-1.0/gudev-1.0.metadata
+++ b/vapi/packages/gudev-1.0/gudev-1.0.metadata
@@ -17,3 +17,4 @@ g_udev_device_get_property nullable="1" transfer_ownership="0"
 g_udev_device_get_property_as_strv nullable="1" transfer_ownership="0" is_array="1" no_array_length="1"
 g_udev_device_get_sysfs_attr nullable="1" transfer_ownership="0"
 g_udev_device_get_sysfs_attr_as_strv nullable="1" transfer_ownership="0" is_array="1" no_array_length="1"
+GUdevDeviceNumber is_value_type="1" simple_type="1" base_type="Posix.dev_t" rank="9"



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