0

are there any alternative to g_variant_lookup_value when the key is not a string type (i.e. the key is an integer)?

I have a function which takes a "a{ias}" dictionary like a GVariant *. I want to get the arrays of strings related to one key (which is an int value).

franred
  • 3
  • 1

1 Answers1

0

I'm not aware of anything already built into glib (though I'm not all that familiar with the GVariant API), but looking at the g_variant_lookup_value implementation it would be trivial to create a modified version in your code which behaves like that.

nemequ
  • 16,623
  • 1
  • 43
  • 62