59 const gint32 min_size,
60 const gint32 max_size,
void qev_list_foreach(qev_list_t *list, qev_list_cb cb, guint threads, gboolean unlocked, void *data)
Iterates through the list, calling cb on each item.
void qev_list_remove(qev_list_t *list, gint32 *idx)
Remove an item from the list.
void qev_list_free(qev_list_t *list)
Cleans up the list and frees everything in it.
void(* qev_list_cb)(void *item, void *data)
A callback for iterating the list: takes the item in the list and any supplied data.
Definition: list.h:24
guint32 qev_list_size(qev_list_t *list)
The number of items in the list.
void qev_list_empty(qev_list_t *list)
Empties out the entire list.
void * qev_list_steal(qev_list_t *list, gint32 *idx)
Steal an item from the list without calling free_fn on it.
struct qev_list qev_list_t
Bitch, stop looking at me.
Definition: list.h:18
gboolean qev_list_try_add(qev_list_t *list, void *thing, gint32 *idx)
Insert an item into the list without blocking.
gboolean qev_list_add(qev_list_t *list, void *thing, gint32 *idx)
Insert an item into the list.
Provides all the qev_* functions that are needed for creating an event loop.
void(* qev_free_fn)(void *)
Function type for a typical free function.
Definition: qev.h:185
qev_list_t * qev_list_new(const gint32 size, const qev_free_fn free_fn)
Create a new list.
struct qev_list * qev_list_new_resizable(const gint32 min_size, const gint32 max_size, const qev_free_fn free_fn)
Create a new list that expands in size as necessary.