get_result_list


Description:

[ Version ( since = "1.2.0" ) ]
public bool get_result_list (List<string> out_names, List<Type?> out_types, out List<Value?> out_values) throws Error

A variant of get_result that takes lists of out-parameter names, types and place-holders for values.

The returned list in out_values must be freed using `g_list_free` and each element in it using `g_value_unset` and `g_free`. ```c void on_action_finished(GObject *object, GAsyncResult *res, gpointer user_data) { GUPnPServiceProxyAction *action; GError *error;

action = gupnp_service_proxy_call_action_finish (GUPNP_SERVICE_PROXY (object), res, &error);

if (error != NULL) { g_print ("Call failed: s", error->message); g_clear_error (&error); return; }

GList *out_args = NULL; out_args = g_list_append (out_args, "PlayMode"); out_args = g_list_append (out_args, "RecQualityMode"); GList *out_types = NULL; out_types = g_list_append (out_types, GSIZE_TO_POINTER (G_TYPE_STRING)); out_types = g_list_append (out_types, GSIZE_TO_POINTER (G_TYPE_STRING)); GList *out_values = NULL;

if (!gupnp_service_proxy_action_get_result_list (action, out_args, out_types, &out_values, &error)) { g_print ("Getting results failed: s", error->message); g_clear_error (&error); return; }

GList *iter = out_values; while (iter != NULL) { GValue *value = iter->data; g_print ("Result: s \n", g_value_get_string (value)); g_value_unset (value); g_free (value); iter = g_list_remove_link (iter, iter); } g_list_free ( out_values); } ```

Parameters:

this

A ServiceProxyAction handle

out_names

List of 'out' parameter names (as strings)

out_types

List of types (as Type) that line up with out_names

out_values

List of values (as Value) that line up with out_names and out_types.

Returns:

true on success.