mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-20 18:10:13 +01:00
lua: bind wp_core_update_properties()
This commit is contained in:
parent
b8f0cf3644
commit
b697546476
1 changed files with 10 additions and 0 deletions
|
|
@ -293,6 +293,15 @@ core_test_feature (lua_State *L)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
core_update_properties (lua_State *L)
|
||||||
|
{
|
||||||
|
WpCore *core = get_wp_core(L);
|
||||||
|
luaL_checktype (L, 1, LUA_TTABLE);
|
||||||
|
wp_core_update_properties (core, wplua_table_to_properties (L, 1));
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static const luaL_Reg core_funcs[] = {
|
static const luaL_Reg core_funcs[] = {
|
||||||
{ "get_properties", core_get_properties },
|
{ "get_properties", core_get_properties },
|
||||||
{ "get_info", core_get_info },
|
{ "get_info", core_get_info },
|
||||||
|
|
@ -304,6 +313,7 @@ static const luaL_Reg core_funcs[] = {
|
||||||
{ "quit", core_quit },
|
{ "quit", core_quit },
|
||||||
{ "require_api", core_require_api },
|
{ "require_api", core_require_api },
|
||||||
{ "test_feature", core_test_feature },
|
{ "test_feature", core_test_feature },
|
||||||
|
{ "update_properties", core_update_properties },
|
||||||
{ NULL, NULL }
|
{ NULL, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue