[vala/wip/dbusgen: 386/403] added support for Handle types
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/dbusgen: 386/403] added support for Handle types
- Date: Wed, 18 Aug 2021 13:04:44 +0000 (UTC)
commit 12bafd1d3af1c1fc16680c0d272b4ac4ee28ce34
Author: Chris Daley <chebizarro gmail com>
Date: Fri Nov 24 10:45:23 2017 -0800
added support for Handle types
dbusgen/valadbusvariantmodule.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/dbusgen/valadbusvariantmodule.vala b/dbusgen/valadbusvariantmodule.vala
index 48dd2882e..30a0cd2c5 100644
--- a/dbusgen/valadbusvariantmodule.vala
+++ b/dbusgen/valadbusvariantmodule.vala
@@ -151,6 +151,8 @@ public class Vala.DBusVariantModule {
return vardict_type.copy ();
} else if (type.equal (VariantType.VARIANT) || type.equal (VariantType.ANY) || type.equal
(VariantType.BASIC) || type.equal (VariantType.MAYBE) || type.equal (VariantType.TUPLE)) {
return new ObjectType ((ObjectTypeSymbol) gvariant_type);
+ } else if (type.equal (VariantType.HANDLE)) {
+ return int32_type.copy ();
}
Report.warning (null, "Unresolved type: %s".printf ((string) type.peek_string ()));
@@ -166,8 +168,6 @@ public class Vala.DBusVariantModule {
return string_type.copy ();
} else if (type.equal (VariantType.DICTIONARY)) {
return new ObjectType ((ObjectTypeSymbol) ghashtable_type);
- } else if (type.equal (VariantType.HANDLE)) {
- return string_type.copy ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]