[vala] D-Bus: Fix C warnings in GDBus clients
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] D-Bus: Fix C warnings in GDBus clients
- Date: Tue, 21 Dec 2010 21:35:35 +0000 (UTC)
commit f96a26d40dd1613844d0c2b0014182e4ef057a49
Author: Jürg Billeter <j bitron ch>
Date: Tue Dec 21 21:58:31 2010 +0100
D-Bus: Fix C warnings in GDBus clients
codegen/valagdbusclientmodule.vala | 4 ++--
codegen/valagdbusservermodule.vala | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/codegen/valagdbusclientmodule.vala b/codegen/valagdbusclientmodule.vala
index e1be9ba..1e489c1 100644
--- a/codegen/valagdbusclientmodule.vala
+++ b/codegen/valagdbusclientmodule.vala
@@ -568,7 +568,7 @@ public class Vala.GDBusClientModule : GDBusModule {
// use wrapper as source_object wouldn't be correct otherwise
ccall.add_argument (new CCodeIdentifier (generate_async_callback_wrapper ()));
var res_wrapper = new CCodeFunctionCall (new CCodeIdentifier ("g_simple_async_result_new"));
- res_wrapper.add_argument (new CCodeIdentifier ("self"));
+ res_wrapper.add_argument (new CCodeCastExpression (new CCodeIdentifier ("self"), "GObject *"));
res_wrapper.add_argument (new CCodeIdentifier ("_callback_"));
res_wrapper.add_argument (new CCodeIdentifier ("_user_data_"));
res_wrapper.add_argument (new CCodeConstant ("NULL"));
@@ -588,7 +588,7 @@ public class Vala.GDBusClientModule : GDBusModule {
// unwrap async result
var inner_res = new CCodeFunctionCall (new CCodeIdentifier ("g_simple_async_result_get_op_res_gpointer"));
- inner_res.add_argument (new CCodeIdentifier ("_res_"));
+ inner_res.add_argument (new CCodeCastExpression (new CCodeIdentifier ("_res_"), "GSimpleAsyncResult *"));
ccall.add_argument (inner_res);
ccall.add_argument (new CCodeConstant ("error"));
diff --git a/codegen/valagdbusservermodule.vala b/codegen/valagdbusservermodule.vala
index 096539d..af54e84 100644
--- a/codegen/valagdbusservermodule.vala
+++ b/codegen/valagdbusservermodule.vala
@@ -69,7 +69,7 @@ public class Vala.GDBusServerModule : GDBusClientModule {
} else {
function.add_parameter (new CCodeParameter ("source_object", "GObject *"));
function.add_parameter (new CCodeParameter ("_res_", "GAsyncResult *"));
- function.add_parameter (new CCodeParameter ("_user_data_", "gpointer *"));
+ function.add_parameter (new CCodeParameter ("_user_data_", "gpointer"));
}
push_function (function);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]