22 #ifndef _OSCAP_ERR_QUEUE_H
23 #define _OSCAP_ERR_QUEUE_H
60 bool err_queue_is_empty(
struct err_queue *q);
struct err_queue * err_queue_new(void)
Initialize new error_queue.
Definition: err_queue.c:31
int err_queue_to_string(struct err_queue *q, char **result)
Get all the errors in the queue as a single string.
Definition: err_queue.c:98
const struct oscap_err_t * err_queue_get_last(struct err_queue *q)
Return the last object from the FIFO queuqe.
Definition: err_queue.c:78
bool err_queue_push(struct err_queue *q, struct oscap_err_t *error)
Push the new error at the end of the error queue.
Definition: err_queue.c:36
struct oscap_err_t * err_queue_pop_first(struct err_queue *q)
Pop the first object from the FIFO queue.
Definition: err_queue.c:64
void err_queue_free(struct err_queue *q, oscap_destruct_func destructor)
Dispose given err_queue.
Definition: err_queue.c:87
Definition: err_queue.c:26