void err_queue_free |
( |
struct err_queue * |
q, |
|
|
oscap_destruct_func |
destructor |
|
) |
| |
Dispose given err_queue.
Dispose also stored messages if destructor is supplied.
- Parameters
-
q | Internal Error Queue |
destructor | a function to dipose messages in the queue |
Return the last object from the FIFO queuqe.
This object continues to be a property of err_queue and shall not be modified nor disposed.
- Parameters
-
- Returns
- the last item in the queue or NULL
Initialize new error_queue.
- Returns
- newly initialized error queue
Pop the first object from the FIFO queue.
This new object is no longer tracked by err_queue and shall be disposed by caller.
- Parameters
-
- Returns
- The first item in the queue or NULL.
Push the new error at the end of the error queue.
- Parameters
-
q | Internal Error Queue |
error | new error to save in the queuei |
- Returns
- true on success
int err_queue_to_string |
( |
struct err_queue * |
q, |
|
|
char ** |
result |
|
) |
| |
Get all the errors in the queue as a single string.
- Parameters
-
q | Internal Error Queue |
result | pointer, where to store the resulting string. Newly allocated mmory will be assigned with this. And shall be disposed by caller. |
- Returns
- zero on success
The documentation for this struct was generated from the following files: