wireplumber/lib/wplua
George Kiagiadakis e92351b23b wplua: gvariant_to_lua: convert dictionary keys to integers if possible
When we convert from a lua table to a GVariant dictionary, it is not
possible to maintain the hybrid string & integer keys approach that Lua
has for tables, so we convert all keys to strings and a table becomes a{sv}

When we convert back from a{sv} to a table, it is desirable to get back
the integer keys wherever possible.

The use case is to pass "arrays" (i.e. tables with integer keys) from
the configuration files to the lua scripts, without losing the properties
of the "array"
2021-02-15 18:50:56 +02:00
..
boxed.c wplua: fix vtables lookup in boxed __index function 2021-02-05 08:47:27 +00:00
closure.c wplua: use the error handler also when loading chunks 2020-12-18 18:25:43 +02:00
gresource.xml wplua: implement sandboxing of scripts 2020-12-15 18:28:28 +02:00
meson.build wplua: implement sandboxing of scripts 2020-12-15 18:28:28 +02:00
object.c wplua: object: unset GValues used when calling action signals 2021-01-21 09:42:07 +02:00
private.h wplua: use the error handler also when loading chunks 2020-12-18 18:25:43 +02:00
sandbox.lua daemon: add a mode to execute lua scripts from the command line 2021-02-04 16:44:56 +02:00
userdata.c wplua: new simple engine to integrate GObject with Lua 2020-12-11 17:07:20 +02:00
value.c wplua: gvariant_to_lua: convert dictionary keys to integers if possible 2021-02-15 18:50:56 +02:00
wplua.c wplua: pass SANDBOX_CONFIG as a script argument 2021-02-03 17:16:51 +02:00
wplua.h wplua: improve gvariant <-> lua conversion functions 2021-02-15 14:43:18 +02:00