get_result_hash


Description:

[ Version ( since = "1.2.0" ) ]
public bool get_result_hash (ref unowned HashTable<string,Value?> out_hash) throws Error

See get_result; this version takes a GenericSet for runtime generated parameter lists.

The out_hash needs to be pre-initialized with key value pairs denoting the argument to retrieve and an empty Value initialized to hold the wanted type with Value.

```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; }

GValue play_mode = G_VALUE_INIT; g_value_init(&play_mode, G_TYPE_STRING); GValue rec_quality_mode = G_VALUE_INIT; g_value_init( &rec_quality_mode, G_TYPE_STRING);

GHashTable *out_args = g_hash_table_new (g_str_hash, g_str_equal); g_hash_table_insert(out_args, "PlayMode", &play_mode); g_hash_table_insert(out_args, "RecQualityMode", &rec_quality_mode);

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

g_value_unset (&play_mode); g_value_unset (&rec_quality_mode);

g_hash_table_unref (out_args); } ```

Parameters:

this

A ServiceProxyAction handle

out_hash

A GenericSet of out parameter name and initialised Value pairs

Returns:

true on success.