[vala/wip/transform: 129/131] GDBus Improve property getter
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/transform: 129/131] GDBus Improve property getter
- Date: Sun, 20 Jan 2019 11:38:06 +0000 (UTC)
commit 8393863fa04281ab4ede7c0b5d99365c4d99cb6e
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Oct 28 17:52:59 2018 +0100
GDBus Improve property getter
codegen/valagdbusservertransformer.vala | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/codegen/valagdbusservertransformer.vala b/codegen/valagdbusservertransformer.vala
index 48a68e07e..1cc06563d 100644
--- a/codegen/valagdbusservertransformer.vala
+++ b/codegen/valagdbusservertransformer.vala
@@ -217,13 +217,13 @@ public class Vala.GDBusServerTransformer : GDBusClientTransformer {
m.add_parameter (new Parameter ("object_path", data_type ("string", false)));
m.add_parameter (new Parameter ("interface_name", data_type ("string", false)));
m.add_parameter (new Parameter ("property_name", data_type ("string", false)));
- m.add_parameter (new Parameter ("error", new PointerType (new PointerType (new VoidType
()))));
+ m.add_parameter (new Parameter ("error", new PointerType (new ErrorType (null, null))));
m.add_parameter (new Parameter ("user_data", new PointerType (new VoidType ())));
sym.add_method (m);
push_builder (new CodeBuilder.for_subroutine (m));
var object_type = SemanticAnalyzer.get_data_type_for_symbol (sym);
- var object = b.add_temp_declaration (null, expression (@"($object_type) (((GLib.Object[])
user_data)[0])"));
+ var object = b.add_temp_declaration (data_type (@"$object_type", false), expression
(@"($object_type) (((GLib.Object[]) user_data)[0])"));
b.open_switch (expression ("property_name"), null);
statements ("return null;");
foreach (var prop in sym.get_properties ()) {
@@ -254,13 +254,13 @@ public class Vala.GDBusServerTransformer : GDBusClientTransformer {
m.add_parameter (new Parameter ("interface_name", data_type ("string", false)));
m.add_parameter (new Parameter ("property_name", data_type ("string", false)));
m.add_parameter (new Parameter ("value", data_type ("GLib.Variant", false)));
- m.add_parameter (new Parameter ("error", new PointerType (new PointerType (new VoidType
()))));
+ m.add_parameter (new Parameter ("error", new PointerType (new ErrorType (null, null))));
m.add_parameter (new Parameter ("user_data", new PointerType (new VoidType ())));
sym.add_method (m);
push_builder (new CodeBuilder.for_subroutine (m));
var object_type = SemanticAnalyzer.get_data_type_for_symbol (sym);
- var object = b.add_temp_declaration (null, expression (@"($object_type) (((GLib.Object[])
user_data)[0])"));
+ var object = b.add_temp_declaration (data_type (@"$object_type", false), expression
(@"($object_type) (((GLib.Object[]) user_data)[0])"));
b.open_switch (expression ("property_name"), null);
statements ("return false;");
foreach (var prop in sym.get_properties ()) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]