m-lua-scripting: add WpSpaPod api
This commit is contained in:

committed by
George Kiagiadakis

parent
a634bf88fd
commit
81163a52c0
@@ -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,
|
||||
|
@@ -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,
|
||||
}
|
||||
}
|
||||
|
1064
modules/module-lua-scripting/pod.c
Normal file
1064
modules/module-lua-scripting/pod.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user