lua: add constructor and file ops for WpConf

This exposes the ability to load a SPA-JSON representation of a WpConf
object from an arbitrary file on disk to the Lua API

Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
This commit is contained in:
James Calligeros
2024-04-03 22:19:09 +10:00
parent 59d29f37ac
commit f769ea8f30
2 changed files with 49 additions and 0 deletions

View File

@@ -184,6 +184,9 @@ local Feature = {
},
}
-- Allow calling Conf() to instantiate a new WpConf
WpConf["__new"] = WpConf_new
SANDBOX_EXPORT = {
Debug = Debug,
Id = Id,