pipewire/map.h
More...
Go to the source code of this file.
|
| PW_API_MAP void | pw_map_init (struct pw_map *map, size_t size, size_t extend) |
| | Initialize a map.
|
| |
| PW_API_MAP void | pw_map_clear (struct pw_map *map) |
| | Clear a map and free the data storage.
|
| |
| PW_API_MAP void | pw_map_reset (struct pw_map *map) |
| | Reset a map but keep previously allocated storage.
|
| |
| PW_API_MAP uint32_t | pw_map_insert_new (struct pw_map *map, void *data) |
| | Insert data in the map.
|
| |
| PW_API_MAP int | pw_map_insert_at (struct pw_map *map, uint32_t id, void *data) |
| | Replace the data in the map at an index.
|
| |
| PW_API_MAP void | pw_map_remove (struct pw_map *map, uint32_t id) |
| | Remove an item at index.
|
| |
| PW_API_MAP void * | pw_map_lookup (const struct pw_map *map, uint32_t id) |
| | Find an item in the map.
|
| |
| PW_API_MAP int | pw_map_for_each (const struct pw_map *map, int(*func)(void *item_data, void *data), void *data) |
| | Iterate all map items.
|
| |
◆ PW_API_MAP
| #define PW_API_MAP static inline |