libamxc
1.10.3
C Generic Data Containers
|
Ambiorix linked queue API header file. More...
Go to the source code of this file.
Typedefs | |
typedef amxc_llist_t | amxc_lqueue_t |
The linked queue structure. More... | |
typedef amxc_llist_it_t | amxc_lqueue_it_t |
The linked queue iterator structure. More... | |
typedef amxc_llist_it_delete_t | amxc_lqueue_it_delete_t |
Definition of the item delete function. More... | |
Functions | |
AMXC_INLINE int | amxc_lqueue_new (amxc_lqueue_t **lqueue) |
Allocates a linked queue. More... | |
AMXC_INLINE void | amxc_lqueue_delete (amxc_lqueue_t **lqueue, amxc_lqueue_it_delete_t func) |
Frees the previously allocated linked queue. More... | |
AMXC_INLINE int | amxc_lqueue_init (amxc_lqueue_t *const lqueue) |
Initializes a linked queue. More... | |
AMXC_INLINE void | amxc_lqueue_clean (amxc_lqueue_t *const lqueue, amxc_lqueue_it_delete_t func) |
Removes all items from the linked queue. More... | |
AMXC_INLINE int | amxc_lqueue_add (amxc_lqueue_t *const lqueue, amxc_lqueue_it_t *const it) |
Adds an item to the linked queue. More... | |
AMXC_INLINE amxc_lqueue_it_t * | amxc_lqueue_remove (amxc_lqueue_t *const lqueue) |
Removes the first added item from the queue. More... | |
AMXC_INLINE size_t | amxc_lqueue_size (const amxc_lqueue_t *const lqueue) |
Calculates the size of the queue, expressed in number of items. More... | |
AMXC_INLINE bool | amxc_lqueue_is_empty (const amxc_lqueue_t *const lqueue) |
Checks that the linked queue is empty. More... | |
AMXC_INLINE int | amxc_lqueue_it_init (amxc_lqueue_it_t *const it) |
Initializes a linked queue iterator. More... | |
Ambiorix linked queue API header file.
Definition in file amxc_lqueue.h.