17 #ifndef __NUGU_RING_BUFFER_H__
18 #define __NUGU_RING_BUFFER_H__
NUGU_API int nugu_ring_buffer_get_count(NuguRingBuffer *buf)
Get count.
NUGU_API int nugu_ring_buffer_get_item_size(NuguRingBuffer *buf)
Get itemsize.
NUGU_API void nugu_ring_buffer_clear_items(NuguRingBuffer *buf)
Clear the ringbuffer.
NUGU_API int nugu_ring_buffer_get_maxcount(NuguRingBuffer *buf)
Get maxcount.
NUGU_API void nugu_ring_buffer_free(NuguRingBuffer *buf)
Destroy the ringbuffer object.
struct _nugu_ring_buffer NuguRingBuffer
RingBuffer object.
Definition: nugu_ringbuffer.h:41
NUGU_API int nugu_ring_buffer_resize(NuguRingBuffer *buf, int item_size, int max_items)
Resize the ringbuffer.
NUGU_API int nugu_ring_buffer_read_item(NuguRingBuffer *buf, char *item, int *size)
Read item from ringbuffer.
NUGU_API NuguRingBuffer * nugu_ring_buffer_new(int item_size, int max_items)
Create new ringbuffer object.
NUGU_API int nugu_ring_buffer_push_data(NuguRingBuffer *buf, const char *data, int size)
Push data to ringbuffer.