[vala] D-Bus: Add missing casts for async server methods
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] D-Bus: Add missing casts for async server methods
- Date: Wed, 16 Jun 2010 18:58:44 +0000 (UTC)
commit 7631c005ed21609a04fec882271e8ae7f5ab1372
Author: Mikkel Kamstrup Erlandsen <mikkel kamstrup canonical com>
Date: Tue Jun 15 21:49:34 2010 +0200
D-Bus: Add missing casts for async server methods
Fixes bug 621692.
codegen/valadbusservermodule.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valadbusservermodule.vala b/codegen/valadbusservermodule.vala
index 0152985..02abc79 100644
--- a/codegen/valadbusservermodule.vala
+++ b/codegen/valadbusservermodule.vala
@@ -171,7 +171,7 @@ public class Vala.DBusServerModule : DBusClientModule {
CCodeFunctionCall finish_ccall = null;
if (m.coroutine) {
finish_ccall = new CCodeFunctionCall (new CCodeIdentifier (m.get_finish_cname ()));
- finish_ccall.add_argument (new CCodeIdentifier ("source_object"));
+ finish_ccall.add_argument (new CCodeCastExpression (new CCodeIdentifier ("source_object"), sym.get_cname () + "*"));
finish_ccall.add_argument (new CCodeIdentifier ("_res_"));
}
@@ -347,7 +347,7 @@ public class Vala.DBusServerModule : DBusClientModule {
}
if (m.coroutine) {
- ccall.add_argument (new CCodeIdentifier (wrapper_name + "_ready"));
+ ccall.add_argument (new CCodeCastExpression (new CCodeIdentifier (wrapper_name + "_ready"), "GAsyncReadyCallback"));
var new_call = new CCodeFunctionCall (new CCodeIdentifier ("g_new0"));
new_call.add_argument (new CCodeIdentifier ("gpointer"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]