Skip to content

Commit

Permalink
extension: Support marshaling GVariant arrays of variant
Browse files Browse the repository at this point in the history
Co-authored-by: Håvard Sørbø <[email protected]>
  • Loading branch information
oleavr and hsorbo committed May 28, 2024
1 parent 099cebd commit 0a48550
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frida/_frida/extension.c
Original file line number Diff line number Diff line change
Expand Up @@ -1680,7 +1680,15 @@ PyGObject_marshal_variant (GVariant * variant)

for (i = 0; (child = g_variant_iter_next_value (&iter)) != NULL; i++)
{
if (g_variant_is_of_type (child, G_VARIANT_TYPE_VARIANT))
{
GVariant * inner = g_variant_get_variant (child);
g_variant_unref (child);
child = inner;
}

PyList_SetItem (list, i, PyGObject_marshal_variant (child));

g_variant_unref (child);
}

Expand Down

0 comments on commit 0a48550

Please sign in to comment.