node: remove obsolete enabled state

We will create/destroy nodes instead of enabled/disable
This commit is contained in:
Wim Taymans 2019-04-24 15:39:29 +02:00
parent 24f6fc2a34
commit 9b1da77bfc
6 changed files with 4 additions and 48 deletions

View file

@ -87,8 +87,6 @@ static void complete_init(struct impl *impl)
struct pw_node *this = impl->this;
impl->init_pending = SPA_ID_INVALID;
if (SPA_FLAG_CHECK(impl->flags, PW_SPA_NODE_FLAG_DISABLE))
pw_node_set_enabled(this, false);
if (SPA_FLAG_CHECK(impl->flags, PW_SPA_NODE_FLAG_ACTIVATE))
pw_node_set_active(this, true);

View file

@ -35,10 +35,9 @@ extern "C" {
#endif
enum pw_spa_node_flags {
PW_SPA_NODE_FLAG_DISABLE = (1 << 0),
PW_SPA_NODE_FLAG_ACTIVATE = (1 << 1),
PW_SPA_NODE_FLAG_NO_REGISTER = (1 << 2),
PW_SPA_NODE_FLAG_ASYNC = (1 << 3),
PW_SPA_NODE_FLAG_ACTIVATE = (1 << 0),
PW_SPA_NODE_FLAG_NO_REGISTER = (1 << 1),
PW_SPA_NODE_FLAG_ASYNC = (1 << 2),
};
struct pw_node *