ServiceProxyAction


Description:

[ CCode ( has_construct_function = false ) ]
public ServiceProxyAction (string action, ...)

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

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 GUPnPServiceProxyAction *action = gupnp_service_proxy_action_new ("GetVolume", // Parameters "InstanceID", G_TYPE_INT, 0, "Channel", G_TYPE_STRING, "Master", NULL);

GError *error = NULL; gupnp_service_proxy_call_action (proxy, action, NULL, &error); if (error != NULL) { g_warning ("Failed to call GetVolume: s", error->message); g_clear_error (&error);

return; }

guint16 volume = 0; if (!gupnp_service_proxy_action_get_result (action, &error, "CurrentVolume", G_TYPE_UINT, &volume, NULL)) { g_message ("Current Volume: u", volume); }

gupnp_service_proxy_action_unref (action); ```

Parameters:

action

The name of a remote action to call

...

tuples of in parameter name, in parameter type, and in parameter value, terminated with null

Returns:

A newly created ServiceProxyAction