0

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);
  • I guess, this https://stackoverflow.com/questions/46726745/get-the-contents-of-gvariant could help you how to get the similar content. – Andy Feb 09 '23 at 20:39

0 Answers0