Re: Re: send_action_list vala
- From: andrea zambon <zamby ing gmail com>
- To: Jens Georg <mail jensge org>
- Cc: gupnp-list gnome org
- Subject: Re: Re: send_action_list vala
- Date: Sun, 12 Feb 2012 16:20:32 +0100
Wow! It works. Final code:
var in_names = new List<string> ();
var in_values = new List<Value?> ();
var out_names = new List<string> ();
out_names.append ("Source");
out_names.append ("Sink");
var out_types = new List<Type> ();
out_types.append (typeof (string));
out_types.append (typeof (string));
var out_values = new List<Value*> ();
try {
proxy.send_action_list("GetProtocolInfo",in_names,in_values,out_names,out_types,out
out_values);
} catch (Error err) {
stdout.printf ("%s\n",err.message);
}
foreach (Value* v in out_values) {
stdout.printf ("type: %s\n", v.type_name());
stdout.printf ("value: %s\n", v.get_string());
v.unset();
GLib.Slice.free (sizeof(Value), v);
}
Thanks for your patience.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]