36 #ifndef CA821X_QUEUE_H
37 #define CA821X_QUEUE_H
size_t peek_queue(struct buffer_queue *buffer_queue)
Non-blocking function returning the length of the next buffer on the queue (or 0 if nothing)
Definition: ca821x-queue.c:125
void flush_queue(struct buffer_queue *buffer_queue)
Empty a queue into nothing.
Definition: ca821x-queue.c:75
size_t wait_on_queue(struct buffer_queue *buffer_queue, time_t timeout_s)
Wait on a queue, blocking until there is something available.
Definition: ca821x-queue.c:142
ca_error wait_on_queue_empty(struct buffer_queue *buffer_queue, time_t timeout_s)
Wait on a queue, blocking until it is empty.
Definition: ca821x-queue.c:176
size_t pop_from_queue(struct buffer_queue *buffer_queue, uint8_t *destBuf, size_t maxlen, struct ca821x_dev **pDeviceRef_out)
Pop a buffer off a queue.
Definition: ca821x-queue.c:91
void add_to_queue(struct buffer_queue *buffer_queue, const uint8_t *buf, size_t len, struct ca821x_dev *pDeviceRef)
Add a buffer onto the end of a queue.
Definition: ca821x-queue.c:42
Various types used by the cascoda posix api.
ca_error
Cascoda error type.
Definition: ca821x_error.h:51
Queue struct for singly-linked list of buffer_queue_items.
Definition: ca821x-types.h:183
CA-821x Device reference struct.
Definition: ca821x_api.h:123