|
libdacav 0.9.0
|
Circular buffer. More...
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_t * | dcirc_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. | |
Circular buffer.