mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-28 01:40:43 -05:00
make static inline -> SPA_API_IMPL
So that we can export the symbols as well.
This commit is contained in:
parent
84bd4b7ea9
commit
90b0e45037
91 changed files with 563 additions and 552 deletions
|
|
@ -50,14 +50,14 @@ struct spa_dict {
|
|||
(item) < &(dict)->items[(dict)->n_items]; \
|
||||
(item)++)
|
||||
|
||||
static inline int spa_dict_item_compare(const void *i1, const void *i2)
|
||||
SPA_API_IMPL int spa_dict_item_compare(const void *i1, const void *i2)
|
||||
{
|
||||
const struct spa_dict_item *it1 = (const struct spa_dict_item *)i1,
|
||||
*it2 = (const struct spa_dict_item *)i2;
|
||||
return strcmp(it1->key, it2->key);
|
||||
}
|
||||
|
||||
static inline void spa_dict_qsort(struct spa_dict *dict)
|
||||
SPA_API_IMPL void spa_dict_qsort(struct spa_dict *dict)
|
||||
{
|
||||
if (dict->n_items > 0)
|
||||
qsort((void*)dict->items, dict->n_items, sizeof(struct spa_dict_item),
|
||||
|
|
@ -65,7 +65,7 @@ static inline void spa_dict_qsort(struct spa_dict *dict)
|
|||
SPA_FLAG_SET(dict->flags, SPA_DICT_FLAG_SORTED);
|
||||
}
|
||||
|
||||
static inline const struct spa_dict_item *spa_dict_lookup_item(const struct spa_dict *dict,
|
||||
SPA_API_IMPL const struct spa_dict_item *spa_dict_lookup_item(const struct spa_dict *dict,
|
||||
const char *key)
|
||||
{
|
||||
const struct spa_dict_item *item;
|
||||
|
|
@ -88,7 +88,7 @@ static inline const struct spa_dict_item *spa_dict_lookup_item(const struct spa_
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static inline const char *spa_dict_lookup(const struct spa_dict *dict, const char *key)
|
||||
SPA_API_IMPL const char *spa_dict_lookup(const struct spa_dict *dict, const char *key)
|
||||
{
|
||||
const struct spa_dict_item *item = spa_dict_lookup_item(dict, key);
|
||||
return item ? item->value : NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue