[vala/wip/dbusgen: 46/60] added support for Handle types



commit 538f9912f81166a6107e547cd5ddd1b71b65e115
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]