Dictionary data structure.
More...
|
#define | SPA_DICT_ITEM(key, value) ((struct spa_dict_item) { (key), (value) }) |
|
#define | SPA_DICT_ITEM_INIT(key, value) SPA_DICT_ITEM(key,value) |
|
#define | SPA_DICT_FLAG_SORTED (1<<0) |
| items are sorted
|
|
#define | SPA_DICT(items, n_items) ((struct spa_dict) { 0, (n_items), (items) }) |
|
#define | SPA_DICT_ARRAY(items) SPA_DICT((items),SPA_N_ELEMENTS(items)) |
|
#define | SPA_DICT_ITEMS(...) SPA_DICT_ARRAY(((struct spa_dict_item[]) { __VA_ARGS__})) |
|
#define | SPA_DICT_INIT(items, n_items) SPA_DICT(items,n_items) |
|
#define | SPA_DICT_INIT_ARRAY(items) SPA_DICT_ARRAY(items) |
|
#define | spa_dict_for_each(item, dict) |
|
Dictionary data structure.
◆ SPA_DICT_ITEM
#define SPA_DICT_ITEM |
( |
|
key, |
|
|
|
value |
|
) |
| ((struct spa_dict_item) { (key), (value) }) |
◆ SPA_DICT_ITEM_INIT
#define SPA_DICT_ITEM_INIT |
( |
|
key, |
|
|
|
value |
|
) |
| SPA_DICT_ITEM(key,value) |
◆ SPA_DICT_FLAG_SORTED
#define SPA_DICT_FLAG_SORTED (1<<0) |
◆ SPA_DICT
#define SPA_DICT |
( |
|
items, |
|
|
|
n_items |
|
) |
| ((struct spa_dict) { 0, (n_items), (items) }) |
◆ SPA_DICT_ARRAY
◆ SPA_DICT_ITEMS
◆ SPA_DICT_INIT
#define SPA_DICT_INIT |
( |
|
items, |
|
|
|
n_items |
|
) |
| SPA_DICT(items,n_items) |
◆ SPA_DICT_INIT_ARRAY
◆ spa_dict_for_each
#define spa_dict_for_each |
( |
|
item, |
|
|
|
dict |
|
) |
| |
◆ spa_dict_item_compare()
SPA_API_DICT int spa_dict_item_compare |
( |
const void * |
i1, |
|
|
const void * |
i2 |
|
) |
| |
◆ spa_dict_qsort()
◆ spa_dict_lookup_item()
◆ spa_dict_lookup()