m-lua-scripting: add WpSpaPod api

This commit is contained in:
Julian Bouzas
2021-01-28 13:49:09 -05:00
committed by George Kiagiadakis
parent a634bf88fd
commit 81163a52c0
4 changed files with 1089 additions and 0 deletions

View File

@@ -11,6 +11,8 @@
#define URI_API "resource:///org/freedesktop/pipewire/wireplumber/m-lua-scripting/api.lua"
void wp_lua_scripting_pod_init (lua_State *L);
/* helpers */
static WpCore *
@@ -964,6 +966,8 @@ wp_lua_scripting_api_init (lua_State *L)
lua_pushcfunction (L, plugin_find);
lua_setglobal (L, "WpPlugin_find");
wp_lua_scripting_pod_init (L);
wplua_register_type_methods (L, WP_TYPE_OBJECT,
NULL, object_methods);
wplua_register_type_methods (L, WP_TYPE_PROXY,

View File

@@ -121,4 +121,24 @@ SANDBOX_EXPORT = {
Node = WpNode_new,
LocalNode = WpImplNode_new,
ImplSession = WpImplSession_new,
Pod = {
None = WpSpaPodNone_new,
Boolean = WpSpaPodBoolean_new,
Id = WpSpaPodId_new,
Int = WpSpaPodInt_new,
Long = WpSpaPodLong_new,
Float = WpSpaPodFloat_new,
Double = WpSpaPodDouble_new,
String = WpSpaPodString_new,
Bytes = WpSpaPodBytes_new,
Pointer = WpSpaPodPointer_new,
Fd = WpSpaPodFd_new,
Rectangle = WpSpaPodRectangle_new,
Fraction = WpSpaPodFraction_new,
Object = WpSpaPodObject_new,
Struct = WpSpaPodStruct_new,
Sequence = WpSpaPodSequence_new,
Array = WpSpaPodArray_new,
Choice = WpSpaPodChoice_new,
}
}

File diff suppressed because it is too large Load Diff