[vala/wip/dbusgen: 19/24] added support for Handle types
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/dbusgen: 19/24] added support for Handle types
- Date: Tue, 28 Nov 2017 22:35:54 +0000 (UTC)
commit 6d7c84f3d7a721d03dd5e648b0bdfe5c39b639c4
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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/dbusgen/valadbusvariantmodule.vala b/dbusgen/valadbusvariantmodule.vala
index 48dd288..30a0cd2 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]