- Adapted indenation to new agreed upon system
- Added support for second generation scriptcontext based counter
This commit is contained in:
24
circular.h
24
circular.h
@@ -8,24 +8,24 @@
|
||||
#ifndef CIRCULAR
|
||||
#define CIRCULAR
|
||||
|
||||
typedef struct __CIRCULAR *pCircular;
|
||||
typedef void (*CirKillFunc)(void *pData);
|
||||
typedef struct __CIRCULAR *pCircular;
|
||||
typedef void (*CirKillFunc) (void *pData);
|
||||
|
||||
/* ----------------- birth and death -----------------------------------*/
|
||||
pCircular createCircular(int iSize,CirKillFunc kf);
|
||||
pCircular createCircular(int iSize, CirKillFunc kf);
|
||||
/*
|
||||
iSize is the size of the circular Buffer.
|
||||
KillFunc is a function which can safely delete the data item held
|
||||
as content of the circular buffer.
|
||||
*/
|
||||
void deleteCircular(pCircular self);
|
||||
iSize is the size of the circular Buffer.
|
||||
KillFunc is a function which can safely delete the data item held
|
||||
as content of the circular buffer.
|
||||
*/
|
||||
void deleteCircular(pCircular self);
|
||||
|
||||
/*-------------- access and modify data item at current position ----------*/
|
||||
void setCircular(pCircular self, void *pData);
|
||||
void *getCircular(pCircular self);
|
||||
void setCircular(pCircular self, void *pData);
|
||||
void *getCircular(pCircular self);
|
||||
|
||||
/*---------------- pointer movement --------------------------------------*/
|
||||
void nextCircular(pCircular self);
|
||||
void previousCircular(pCircular self);
|
||||
void nextCircular(pCircular self);
|
||||
void previousCircular(pCircular self);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user