mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-16 07:00:00 -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
|
|
@ -62,11 +62,19 @@ id_map_get_uri (SpaIDMap *map, uint32_t id)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static uint32_t
|
||||
id_map_get_size (SpaIDMap *map)
|
||||
{
|
||||
IDMap *this = SPA_CONTAINER_OF (map, IDMap, map);
|
||||
return pinos_map_get_size (&this->uris);
|
||||
}
|
||||
|
||||
static IDMap default_id_map = {
|
||||
{ sizeof (SpaIDMap),
|
||||
NULL,
|
||||
id_map_get_id,
|
||||
id_map_get_uri,
|
||||
id_map_get_size,
|
||||
},
|
||||
{ { NULL, } },
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue