diff options
author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2009-03-19 20:56:09 +0100 |
---|---|---|
committer | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2009-03-19 20:56:09 +0100 |
commit | 6a21d65d2840c58cfa7cd749a04669d8f7980646 (patch) | |
tree | 00b1aa153b69cda8cf9406c4700fd7730c34d3a5 /recipes/vala/files | |
parent | dcfe7349b369a87881cf1fa43085d9e9c5609fcf (diff) | |
parent | 6f854d71c347475d53d5080a5490625345d95d12 (diff) |
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/vala/files')
-rw-r--r-- | recipes/vala/files/static-dbus-methods.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes/vala/files/static-dbus-methods.patch b/recipes/vala/files/static-dbus-methods.patch new file mode 100644 index 0000000000..7bf4144860 --- /dev/null +++ b/recipes/vala/files/static-dbus-methods.patch @@ -0,0 +1,26 @@ +From: Frederik Sdun <frederik.sdun@googlemail.com> +Hi, + +I figured out that vala generates wrong code on static methods. It tries +to add a user_data pointer, but then the C function has no void* +user_data. + +I appended a diff which fixes the problem for me. + +Regards, Frederik + +Index: vala/gobject/valadbusclientmodule.vala +=================================================================== +--- vala/gobject/valadbusclientmodule.vala (Revision 2430) ++++ vala/gobject/valadbusclientmodule.vala (Arbeitskopie) +@@ -133,7 +133,9 @@ + cend_call.add_argument (new CCodeIdentifier ("call")); + cend_call.add_argument (new CCodeUnaryExpression (CCodeUnaryOperator.ADDRESS_OF, new CCodeIdentifier ("error"))); + var creply_call = new CCodeFunctionCall ((CCodeExpression) callback.ccodenode); +- creply_call.add_argument (new CCodeIdentifier ("user_data")); ++ if( reply_method.binding != MemberBinding.STATIC ) { ++ creply_call.add_argument (new CCodeIdentifier ("user_data")); ++ } + int param_count = reply_method.get_parameters ().size; + int i = 0; + foreach (FormalParameter param in reply_method.get_parameters ()) { |