Re: Re: send_action_list vala



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]