wplua: improve gvariant <-> lua conversion functions

* Add more generic lua -> gvariant conversion
* Cleanup the gvariant -> lua function and rename it
This commit is contained in:
George Kiagiadakis
2021-02-13 12:42:36 +02:00
parent 413ff73bab
commit dacf19d9c7
5 changed files with 106 additions and 139 deletions

View File

@@ -41,7 +41,7 @@ execute_script (lua_State *L, struct ScriptData * s, GError ** error)
{
int nargs = 0;
if (s->args) {
wplua_gvariant_to_table (L, s->args);
wplua_gvariant_to_lua (L, s->args);
nargs++;
}
return wplua_load_path (L, s->filename, nargs, 0, error);