Go to the documentation of this file.
46 #define SPA_DICT_ITEM_INIT(key,value) (struct spa_dict_item) { key, value }
49 #define SPA_DICT_FLAG_SORTED (1<<0)
55 #define SPA_DICT_INIT(items,n_items) (struct spa_dict) { 0, n_items, items }
56 #define SPA_DICT_INIT_ARRAY(items) (struct spa_dict) { 0, SPA_N_ELEMENTS(items), items }
58 #define spa_dict_for_each(item, dict) \
59 for ((item) = (dict)->items; \
60 (item) < &(dict)->items[(dict)->n_items]; \
67 return strcmp(it1->
key, it2->key);
uint32_t flags
Definition: utils/dict.h:50
const char * key
Definition: utils/dict.h:42
#define SPA_DICT_ITEM_INIT(key, value)
Definition: utils/dict.h:46
Definition: utils/dict.h:41
Definition: impl-metadata.c:49
int spa_dict_item_compare(const void *i1, const void *i2)
Definition: utils/dict.h:63
#define SPA_FLAG_SET(field, flag)
Definition: defs.h:74
#define spa_dict_for_each(item, dict)
Definition: utils/dict.h:58
const struct spa_dict_item * items
Definition: utils/dict.h:52
#define SPA_DICT_FLAG_SORTED
items are sorted
Definition: utils/dict.h:49
#define SPA_FLAG_IS_SET(field, flag)
Definition: defs.h:73
Definition: utils/dict.h:48
const char * spa_dict_lookup(const struct spa_dict *dict, const char *key)
Definition: utils/dict.h:99
char * key
Definition: impl-metadata.c:51
const char * value
Definition: utils/dict.h:43
const struct spa_dict_item * spa_dict_lookup_item(const struct spa_dict *dict, const char *key)
Definition: utils/dict.h:77
void spa_dict_qsort(struct spa_dict *dict)
Definition: utils/dict.h:70
char * value
Definition: impl-metadata.c:53
uint32_t n_items
Definition: utils/dict.h:51