Re: [Vala] DBus horror
- From: Michael 'Mickey' Lauer <mickey vanille-media de>
- To: vala-list <vala-list gnome org>
- Subject: Re: [Vala] DBus horror
- Date: Mon, 14 Dec 2009 19:55:37 +0100
(iiii) is definitely not ai, so the struct variant is supposed to work
-- the array variant not.
Am Montag, den 14.12.2009, 18:58 +0100 schrieb Kos:
I tried to set the return value to int[], so it doesn't had to guess the
return type. But then it segfaults.
vala file: http://pastebin.org/64817
generated c file: http://pastebin.org/64814
backtrace: see vala file
I also tried to set the return value to a struct with 4 ints
(org_freedesktop_MediaPlayer.State), but then the c-compiler errors:
vlc_test2.vala.c: In function ‘_dynamic_GetStatus0’:
vlc_test2.vala.c:244: error: ‘result’ redeclared as different kind of symbol
vlc_test2.vala.c:243: note: previous definition of ‘result’ was here
vlc_test2.vala.c:249: warning: ‘return’ with a value, in function returning
Can you post a self-contained sample for this, please? What do I need to
install to test?
Cheers,
:M:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]