Re: Re: send_action_list vala



> Yes, despite the name, out_names and out_types are _input_ values. You
> need
> out_names.append ("SourceProtocolInfo");
> out_names.append ("SinkProtocolInfo");
> out_types.append (typeof (string));
> out_types.append (typeof (string));

I believed that the method auto populates the two lists, names and type (out).
Ok. Now, I see the 2 output, but another problem, I take this output
at runtime when read out_values:

.....
http-get:*:video/mpeg:DLNA.ORG_PN=AVC_TS_HD_24_AC3_ISO;SONY.COM_PN=AVC_TS_HD_24_AC3_ISO;DLNA.ORG_FLAGS=8d700000000000000000000000000000,http-get:*:video/x-mp2t-mphl-188:*
*** glibc detected *** ./browsing-test: double free or corruption
(out): 0x0804e568 ***
======= Backtrace: =========
/lib/libc.so.6(+0x7187e)[0xb715487e]
/lib/libc.so.6(cfree+0x70)[0xb7158420]
/usr/lib/libglib-2.0.so.0(g_free+0x35)[0xb73db147]
./action-test[0x8049b3d]
.....

> Btw, the varargs versions work fine from Vala, why don't you use those?

I must build the input proxy.action dynamically.
example:
string action = "action"
string input = "param1 value1 param2 value2 ...";
string output = "param1 param2 ..."

I have to build a varargs  or  lists to pass proxy.send_action (...)

How do I use varargs instead of lists?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]