- Feb 23, 2021
-
-
George Kiagiadakis authored
When an Array or Choice that contains Spa:Id appears as a value for an object field, it is possible to retrieve the Id type from that object field type.
-
George Kiagiadakis authored
-
Julian Bouzas authored
-
Julian Bouzas authored
-
Julian Bouzas authored
-
Julian Bouzas authored
-
Julian Bouzas authored
-
Julian Bouzas authored
For consistency with LUA
-
George Kiagiadakis authored
-
- Feb 19, 2021
-
-
George Kiagiadakis authored
-
- Feb 18, 2021
-
-
George Kiagiadakis authored
and fix some coding style issues
-
George Kiagiadakis authored
* the type checks were wrong, it was requiring the key to be string and the value integer * add the ability to use "any" or "all" for a key, saving us the trouble of passing -1 from lua (int64) into a uint32 (ugh!) * use a GArray instead of manual malloc/realloc * allocate the array as late as possible, to minimize the risk of leaking its memory if we hit luaL_error()
-
George Kiagiadakis authored
-
George Kiagiadakis authored
* skip the shebang before loading the file in the interpreter, as # is not a valid lua comment * allow loading scripts with a relative path in interactive mode
-
George Kiagiadakis authored
filename: foo.lua -> category: script/foo
-
George Kiagiadakis authored
NULL crashes the journald writer
-
George Kiagiadakis authored
Ensure that no part of the description string is empty, otherwise fall back Fix logic with dev and/or subdev being 0
-
- Feb 16, 2021
-
-
George Kiagiadakis authored
The advantage is that luaL_tolstring behaves the same as the native lua tostring() function, while lua_tostring() does not. In particular, boolean values are converted properly to "true" and "false" now, while they were not converted with lua_tostring() Add a unit test too
-
George Kiagiadakis authored
-
Raghavendra authored
-
- Feb 15, 2021
-
-
George Kiagiadakis authored
This file is meant to provide the equivalent of pipewire-media-session's 'with-pulseaudio' flag file
-
George Kiagiadakis authored
-
George Kiagiadakis authored
-
George Kiagiadakis authored
This allows altering monitor properties or adding rules in different lua files that get loaded before 90-enable*.lua
-
George Kiagiadakis authored
and also make the default of alsa.reserve to be false, for easier scripting
-
George Kiagiadakis authored
pipewire/pipewire!456
-
George Kiagiadakis authored
-
George Kiagiadakis authored
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"
-
George Kiagiadakis authored
-
George Kiagiadakis authored
* index array items from 1 * handle any kind of value, not just GVariant basic types * unit test
-
George Kiagiadakis authored
* Add more generic lua -> gvariant conversion * Cleanup the gvariant -> lua function and rename it
-
George Kiagiadakis authored
G_VARIANT_TYPE_DICTIONARY also catches the VARDICT case
-
George Kiagiadakis authored
-
George Kiagiadakis authored
-
George Kiagiadakis authored
-
- Feb 13, 2021
-
-
George Kiagiadakis authored
-
George Kiagiadakis authored
-
George Kiagiadakis authored
-