mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-06 03:38:02 +02:00
m-lua-script: add object_deactivate API
This commit is contained in:
parent
003afc3e7b
commit
1b5980476b
1 changed files with 10 additions and 0 deletions
|
|
@ -261,8 +261,18 @@ object_activate (lua_State *L)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
object_deactivate (lua_State *L)
|
||||
{
|
||||
WpObject *o = wplua_checkobject (L, 1, WP_TYPE_OBJECT);
|
||||
WpObjectFeatures features = luaL_checkinteger (L, 2);
|
||||
wp_object_deactivate (o, features);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const luaL_Reg object_methods[] = {
|
||||
{ "activate", object_activate },
|
||||
{ "deactivate", object_deactivate },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue