Dictionary data structure
More...
Dictionary data structure
◆ SPA_DICT_ITEM
#define SPA_DICT_ITEM |
( |
| key, |
|
|
| value ) |
Value:
const char * key
Definition dict.h:32
const char * value
Definition dict.h:33
- Examples
- video-src.c.
◆ SPA_DICT_ITEM_INIT
#define SPA_DICT_ITEM_INIT |
( |
| key, |
|
|
| value ) |
◆ SPA_DICT_FLAG_SORTED
#define SPA_DICT_FLAG_SORTED (1<<0) |
◆ SPA_DICT
#define SPA_DICT |
( |
| items, |
|
|
| n_items ) |
Value:
const struct spa_dict_item * items
Definition dict.h:46
uint32_t n_items
Definition dict.h:45
◆ SPA_DICT_ARRAY
#define SPA_DICT_ARRAY |
( |
| items | ) |
|
Value:
#define SPA_DICT(items, n_items)
Definition dict.h:50
#define SPA_N_ELEMENTS(arr)
Definition defs.h:143
◆ SPA_DICT_ITEMS
#define SPA_DICT_ITEMS |
( |
| ... | ) |
|
Value:
#define SPA_DICT_ARRAY(items)
Definition dict.h:52
- Examples
- video-src.c.
◆ SPA_DICT_INIT
#define SPA_DICT_INIT |
( |
| items, |
|
|
| n_items ) |
◆ SPA_DICT_INIT_ARRAY
#define SPA_DICT_INIT_ARRAY |
( |
| items | ) |
|
◆ spa_dict_for_each
#define spa_dict_for_each |
( |
| item, |
|
|
| dict ) |
◆ spa_dict_item_compare()
static int spa_dict_item_compare |
( |
const void * | i1, |
|
|
const void * | i2 ) |
|
inlinestatic |
◆ spa_dict_qsort()
static void spa_dict_qsort |
( |
struct spa_dict * | dict | ) |
|
|
inlinestatic |
◆ spa_dict_lookup_item()
static const struct spa_dict_item * spa_dict_lookup_item |
( |
const struct spa_dict * | dict, |
|
|
const char * | key ) |
|
inlinestatic |
◆ spa_dict_lookup()
static const char * spa_dict_lookup |
( |
const struct spa_dict * | dict, |
|
|
const char * | key ) |
|
inlinestatic |