concept/mproof: Fixed an old minor bug in the concept.
[neuro.git] / include / neuro / lbuf.h
blob2d12b5dd82a38d7b9f457ee49b57733a9fd2fd95
1 /* lbuf.h */
3 #ifndef __LBUF_H
4 #define __LBUF_H
6 #include <neuro/NEURO.h>
8 typedef struct LBUF LBUF;
10 extern void Neuro_SetcallbLBuf(LBUF *eng, void (*callback)(void *src));
12 extern void Neuro_AllocLBuf(LBUF *eng, size_t sobj);
13 /* places a new element at the beginning of the buffer instead of at the end */
14 extern void Neuro_AllocStartLBuf(LBUF *eng, size_t sobj);
16 extern void *Neuro_GiveCurLBuf(LBUF *eng);
18 extern u32 Neuro_GiveLBufCount(LBUF *eng);
20 extern void Neuro_SCleanLBuf(LBUF *eng, void *object);
22 extern void *Neuro_GiveLBuf(LBUF *eng);
24 extern void *Neuro_GiveNextLBuf(LBUF *eng);
26 extern void Neuro_ResetLBuf(LBUF *eng);
28 extern u32 Neuro_LBufIsEmpty(LBUF *eng);
31 extern LBUF *Neuro_CreateLBuf(void);
32 extern void Neuro_CleanLBuf(LBUF *eng);
34 #endif /* NOT __LBUF_H */