wireplumber/modules/module-lua-scripting
James Calligeros d77edf70e9
lua: allow Conf methods to be indexed or called
Given that we are allowing Conf() to instantiate a new WpConf,
the methods on the class need to be callable in reference to Self while
maintaining API compatibility with being indexable from the table as a
static method.

Allow this by checking if the first argument passed in is userdata.

Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
2024-04-17 18:31:09 +10:00
..
api lua: allow Conf methods to be indexed or called 2024-04-17 18:31:09 +10:00
wplua wplua/sandbox: support mixing static methods and constructors in class identifiers 2024-04-09 13:15:50 +00:00
meson.build wplua: move under modules/module-lua-scripting 2022-03-24 09:47:59 +02:00
module.c base-dirs: add XDG_CONFIG/DATA_DIRS and CONFIGURATION & DATA groups 2024-03-04 07:07:56 +00:00
script.c core: change the component arguments to be WpSpaJson instead of GVariant 2023-05-25 18:29:58 +03:00
script.h m-lua-scripting: wrap every script in a WpPlugin and expose async activation api 2022-04-23 20:14:59 +03:00