m-lua-scripting: add WpSpaJson API

This commit is contained in:
Julian Bouzas
2022-01-23 11:21:07 -05:00
parent 4c1574117a
commit 20187e07b5
6 changed files with 466 additions and 0 deletions

View File

@@ -14,6 +14,7 @@
#define URI_API "resource:///org/freedesktop/pipewire/wireplumber/m-lua-scripting/api.lua"
void wp_lua_scripting_pod_init (lua_State *L);
void wp_lua_scripting_json_init (lua_State *L);
/* helpers */
@@ -1363,6 +1364,7 @@ wp_lua_scripting_api_init (lua_State *L)
lua_setglobal (L, "WpPlugin");
wp_lua_scripting_pod_init (L);
wp_lua_scripting_json_init (L);
wplua_register_type_methods (L, G_TYPE_SOURCE,
NULL, source_methods);