mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-05 13:29:50 -05:00
wayland-util: add method for reserving new object id
wl_map_reserve_new() ensures that new id is valid and will point to an empty array entry.
This commit is contained in:
parent
900e4b63ef
commit
bfcd681930
2 changed files with 34 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ void wl_map_init(struct wl_map *map);
|
|||
void wl_map_release(struct wl_map *map);
|
||||
uint32_t wl_map_insert_new(struct wl_map *map, uint32_t side, void *data);
|
||||
int wl_map_insert_at(struct wl_map *map, uint32_t i, void *data);
|
||||
int wl_map_reserve_new(struct wl_map *map, uint32_t i);
|
||||
void wl_map_remove(struct wl_map *map, uint32_t i);
|
||||
void *wl_map_lookup(struct wl_map *map, uint32_t i);
|
||||
void wl_map_for_each(struct wl_map *map, wl_iterator_func_t func, void *data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue