mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pipewire: global: take const argument
The elements of the array are never modified, so change the argument to be `const`.
This commit is contained in:
parent
9aacd36f37
commit
c0e158aa0c
2 changed files with 2 additions and 2 deletions
|
|
@ -207,7 +207,7 @@ const struct pw_properties *pw_global_get_properties(struct pw_global *global)
|
||||||
|
|
||||||
SPA_EXPORT
|
SPA_EXPORT
|
||||||
int pw_global_update_keys(struct pw_global *global,
|
int pw_global_update_keys(struct pw_global *global,
|
||||||
const struct spa_dict *dict, const char *keys[])
|
const struct spa_dict *dict, const char * const keys[])
|
||||||
{
|
{
|
||||||
if (global->registered)
|
if (global->registered)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ const struct pw_properties *pw_global_get_properties(struct pw_global *global);
|
||||||
|
|
||||||
/** Update the global properties, must be done when unregistered */
|
/** Update the global properties, must be done when unregistered */
|
||||||
int pw_global_update_keys(struct pw_global *global,
|
int pw_global_update_keys(struct pw_global *global,
|
||||||
const struct spa_dict *dict, const char *keys[]);
|
const struct spa_dict *dict, const char * const 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 */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue