mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-03 07:58:00 +02:00
m-lua-scripting: add WpSpaPod api
This commit is contained in:
parent
a634bf88fd
commit
81163a52c0
4 changed files with 1089 additions and 0 deletions
|
|
@ -186,6 +186,7 @@ shared_library(
|
|||
'wireplumber-module-lua-scripting',
|
||||
[
|
||||
'module-lua-scripting.c',
|
||||
'module-lua-scripting/pod.c',
|
||||
'module-lua-scripting/api.c',
|
||||
'module-lua-scripting/config.c',
|
||||
m_lua_scripting_resources,
|
||||
|
|
|
|||
|
|
@ -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
Loading…
Add table
Reference in a new issue