libdacav 0.9.0
/home/dacav/Projects/libdacav/libdacav/dacav/dacavcircbuf.h File Reference

Circular buffer. More...

#include <dacav/dacav.h>
#include <stdlib.h>

Go to the source code of this file.

Typedefs

typedef struct dcirc dcirc_t
 Opaque type for circular buffer.

Enumerations

enum  dcirc_result_t { DCIRC_SUCCESS = 0, DCIRC_EMPTY = 1 }
 Return value for the getter function. More...

Functions

dcirc_tdcirc_new (size_t size, const dcprm_t *cprm)
 Constructor for a circular buffer.
dcirc_result_t dcirc_get (dcirc_t *cb, void **item)
 Getter for the oldest item.
void dcirc_put (dcirc_t *cb, const void *item)
 Insert an item, possibly overwriting the oldest stored item.
void dcirc_flush (dcirc_t *cb)
 Flush the circular buffer.
void dcirc_free (dcirc_t *cb)
 Destructor for a circular buffer.

Detailed Description

Circular buffer.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator