[vala/wip/dbusgen: 60/78] added support for Handle types
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/dbusgen: 60/78] added support for Handle types
- Date: Thu, 16 Jan 2020 16:13:18 +0000 (UTC)
commit 4e28c8133b767e661f61ea2a55465eab7e44ded0
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]