mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-01-01 11:08:43 -05:00
global: add method to update global keys
This commit is contained in:
parent
3abd46b619
commit
f79c347667
2 changed files with 14 additions and 0 deletions
|
|
@ -211,6 +211,16 @@ const struct pw_properties *pw_global_get_properties(struct pw_global *global)
|
||||||
return global->properties;
|
return global->properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SPA_EXPORT
|
||||||
|
int pw_global_update_keys(struct pw_global *global,
|
||||||
|
const struct spa_dict *dict, const char *keys[])
|
||||||
|
{
|
||||||
|
struct impl *impl = SPA_CONTAINER_OF(global, struct impl, this);
|
||||||
|
if (impl->registered)
|
||||||
|
return -EINVAL;
|
||||||
|
return pw_properties_update_keys(global->properties, dict, keys);
|
||||||
|
}
|
||||||
|
|
||||||
SPA_EXPORT
|
SPA_EXPORT
|
||||||
void * pw_global_get_object(struct pw_global *global)
|
void * pw_global_get_object(struct pw_global *global)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -113,6 +113,10 @@ uint32_t pw_global_get_version(struct pw_global *global);
|
||||||
/** Get the global properties */
|
/** Get the global properties */
|
||||||
const struct pw_properties *pw_global_get_properties(struct pw_global *global);
|
const struct pw_properties *pw_global_get_properties(struct pw_global *global);
|
||||||
|
|
||||||
|
/** Update the global properties, must be done when unregistered */
|
||||||
|
int pw_global_update_keys(struct pw_global *global,
|
||||||
|
const struct spa_dict *dict, const char *keys[]);
|
||||||
|
|
||||||
/** Get the object associated with the global. This depends on the type of the
|
/** Get the object associated with the global. This depends on the type of the
|
||||||
* global */
|
* global */
|
||||||
void *pw_global_get_object(struct pw_global *global);
|
void *pw_global_get_object(struct pw_global *global);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue