mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-14 06:59:57 -05:00
id-map: add get_size method
This commit is contained in:
parent
ff659ad1a7
commit
997aa036ba
2 changed files with 11 additions and 0 deletions
|
|
@ -52,10 +52,13 @@ struct _SpaIDMap {
|
|||
|
||||
const char * (*get_uri) (SpaIDMap *map,
|
||||
uint32_t id);
|
||||
|
||||
uint32_t (*get_size) (SpaIDMap *map);
|
||||
};
|
||||
|
||||
#define spa_id_map_get_id(n,...) (n)->get_id((n),__VA_ARGS__)
|
||||
#define spa_id_map_get_uri(n,...) (n)->get_uri((n),__VA_ARGS__)
|
||||
#define spa_id_map_get_size(n) (n)->get_size(n)
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue