74 assert_ptr_equal(aqueue, NULL);
92 char data[] =
"abcdefg";
111 char data[] =
"abcdefg";
Ambiorix array based queue API header file.
AMXC_INLINE void amxc_aqueue_delete(amxc_aqueue_t **aqueue, amxc_aqueue_it_delete_t func)
Frees the previously allocated array queue.
AMXC_INLINE size_t amxc_aqueue_is_empty(const amxc_aqueue_t *const aqueue)
Checks that the array queue is empty.
AMXC_INLINE size_t amxc_aqueue_size(const amxc_aqueue_t *const aqueue)
Calculates the number of items in the queue.
AMXC_INLINE amxc_aqueue_it_t * amxc_aqueue_add(amxc_aqueue_t *const aqueue, void *data)
Adds data to the array queue.
AMXC_INLINE void amxc_aqueue_clean(amxc_aqueue_t *const aqueue, amxc_aqueue_it_delete_t func)
Removes all items from the array queue.
AMXC_INLINE void * amxc_aqueue_remove(amxc_aqueue_t *const aqueue)
Removes the first added data from the queue.
AMXC_INLINE int amxc_aqueue_init(amxc_aqueue_t *const aqueue)
Initializes an array queue.
AMXC_INLINE int amxc_aqueue_new(amxc_aqueue_t **aqueue)
Allocates an array queue.
void amxc_aqueue_init_clean_null_check(UNUSED void **state)
void amxc_aqueue_new_delete_null_check(UNUSED void **state)
void amxc_aqueue_remove_check(UNUSED void **state)
void amxc_aqueue_new_delete_check(UNUSED void **state)
void amxc_aqueue_add_check(UNUSED void **state)
void amxc_aqueue_init_clean_check(UNUSED void **state)