I need to work with the result of a DBus operation with type (a(io))
, that is an Array of [Struct of (Int32, Object Path)]
. How do I (for example) print all values in this array?
My code looks like:
GVariant *result;
GError *error = NULL;
result = g_dbus_proxy_call_sync(proxy,
"ListGames",
NULL,
G_DBUS_CALL_FLAGS_NONE,
-1,
NULL,
&error);