ServiceProxyAction.from_list


Description:

[ CCode ( has_construct_function = false ) ]
public ServiceProxyAction.from_list (string action, List<string> in_names, List<Value?> in_values)

Prepares action action with parameters in_names and in_values to be sent off to a remote service later with call_action or call_action_async.

This is mainly useful for language bindings.

After the action call has finished, the results of the call may be retrived from the ServiceProxyAction by using get_result, get_result_list or get_result_hash ```c GList *in_args = NULL; in_args = g_list_append (in_args, "InstanceID"); in_args = g_list_append (in_args, "Unit"); in_args = g_list_append (in_args, "Target");

GValue instance = G_VALUE_INIT; g_value_set_int (&instance, 0); GValue unit = G_VALUE_INIT; g_value_set_static_string (&unit, "ABS_TIME"); GValue target = G_VALUE_INIT; g_value_set_static_string (&target, "00:00:00.000");

GList *in_values = NULL; in_values = g_list_append (in_values, &instance); in_values = g_list_append (in_values, &unit); in_values = g_list_append (in_values, &target);

GUPnPServiceProxyAction *action = gunp_service_proxy_action_new_from_list ("Seek", in_args, in_values);

GError *error = NULL; gupnp_service_proxy_call_action_async (proxy, action, NULL, on_action_finished, NULL); gupnp_service_proxy_action_unref (action); ```

Parameters:

action

An action

in_names

List of 'in' parameter names (as strings)

in_values

List of values (as Value) that line up with in_names

Returns:

A newly created ServiceProxyAction