mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
pipewire: properties: take const argument
Since these particular methods never modify the lists they receive, make the arguments `const`.
This commit is contained in:
parent
73ea24a356
commit
9aacd36f37
2 changed files with 7 additions and 7 deletions
|
|
@ -233,7 +233,7 @@ struct pw_properties *pw_properties_copy(const struct pw_properties *properties)
|
|||
*/
|
||||
SPA_EXPORT
|
||||
int pw_properties_update_keys(struct pw_properties *props,
|
||||
const struct spa_dict *dict, const char *keys[])
|
||||
const struct spa_dict *dict, const char * const keys[])
|
||||
{
|
||||
int i, changed = 0;
|
||||
const char *str;
|
||||
|
|
@ -245,7 +245,7 @@ int pw_properties_update_keys(struct pw_properties *props,
|
|||
return changed;
|
||||
}
|
||||
|
||||
static bool has_key(const char *keys[], const char *key)
|
||||
static bool has_key(const char * const keys[], const char *key)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; keys[i]; i++) {
|
||||
|
|
@ -257,7 +257,7 @@ static bool has_key(const char *keys[], const char *key)
|
|||
|
||||
SPA_EXPORT
|
||||
int pw_properties_update_ignore(struct pw_properties *props,
|
||||
const struct spa_dict *dict, const char *ignore[])
|
||||
const struct spa_dict *dict, const char * const ignore[])
|
||||
{
|
||||
const struct spa_dict_item *it;
|
||||
int changed = 0;
|
||||
|
|
@ -341,7 +341,7 @@ int pw_properties_add(struct pw_properties *props,
|
|||
*/
|
||||
SPA_EXPORT
|
||||
int pw_properties_add_keys(struct pw_properties *props,
|
||||
const struct spa_dict *dict, const char *keys[])
|
||||
const struct spa_dict *dict, const char * const keys[])
|
||||
{
|
||||
uint32_t i;
|
||||
int added = 0;
|
||||
|
|
|
|||
|
|
@ -64,9 +64,9 @@ struct pw_properties *
|
|||
pw_properties_copy(const struct pw_properties *properties);
|
||||
|
||||
int pw_properties_update_keys(struct pw_properties *props,
|
||||
const struct spa_dict *dict, const char *keys[]);
|
||||
const struct spa_dict *dict, const char * const keys[]);
|
||||
int pw_properties_update_ignore(struct pw_properties *props,
|
||||
const struct spa_dict *dict, const char *ignore[]);
|
||||
const struct spa_dict *dict, const char * const ignore[]);
|
||||
|
||||
/* Update props with all key/value pairs from dict */
|
||||
int pw_properties_update(struct pw_properties *props,
|
||||
|
|
@ -78,7 +78,7 @@ int pw_properties_update_string(struct pw_properties *props,
|
|||
int pw_properties_add(struct pw_properties *oldprops,
|
||||
const struct spa_dict *dict);
|
||||
int pw_properties_add_keys(struct pw_properties *oldprops,
|
||||
const struct spa_dict *dict, const char *keys[]);
|
||||
const struct spa_dict *dict, const char * const keys[]);
|
||||
|
||||
void pw_properties_clear(struct pw_properties *properties);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue