mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-02-09 00:30:25 +01:00
config-endpoint-context: add _get_length API
This commit is contained in:
parent
266b5422f2
commit
fefa4b9191
2 changed files with 9 additions and 0 deletions
|
|
@ -295,3 +295,10 @@ wp_config_endpoint_context_new (WpCore *core)
|
|||
"core", core,
|
||||
NULL);
|
||||
}
|
||||
|
||||
guint
|
||||
wp_config_endpoint_context_get_length (WpConfigEndpointContext *self)
|
||||
{
|
||||
g_return_val_if_fail (WP_IS_CONFIG_ENDPOINT_CONTEXT (self), 0);
|
||||
return g_hash_table_size (self->registered_endpoints);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,6 +19,8 @@ G_DECLARE_FINAL_TYPE (WpConfigEndpointContext, wp_config_endpoint_context,
|
|||
|
||||
WpConfigEndpointContext * wp_config_endpoint_context_new (WpCore *core);
|
||||
|
||||
guint wp_config_endpoint_context_get_length (WpConfigEndpointContext *self);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue