mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-08 08:08:03 +02:00
config-static-nodes-context: add _get_length API
This commit is contained in:
parent
46aaa9ef4f
commit
49716f603c
2 changed files with 10 additions and 0 deletions
|
|
@ -240,3 +240,10 @@ wp_config_static_nodes_context_new (WpCore *core)
|
|||
"core", core,
|
||||
NULL);
|
||||
}
|
||||
|
||||
guint
|
||||
wp_config_static_nodes_context_get_length (WpConfigStaticNodesContext *self)
|
||||
{
|
||||
g_return_val_if_fail (WP_IS_CONFIG_STATIC_NODES_CONTEXT (self), 0);
|
||||
return self->static_nodes->len;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,6 +19,9 @@ G_DECLARE_FINAL_TYPE (WpConfigStaticNodesContext, wp_config_static_nodes_context
|
|||
|
||||
WpConfigStaticNodesContext * wp_config_static_nodes_context_new (WpCore *core);
|
||||
|
||||
guint wp_config_static_nodes_context_get_length (
|
||||
WpConfigStaticNodesContext *self);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue