revert between 56095 -> 55830 in arch
[AROS.git] / rom / filesys / SFS / FS / cachebuffers_protos.h
blob23242cccfbc1be14b892a7a5cabbdff1c7860b39
1 #ifndef _CACHEBUFFERS_PROTOS_H
2 #define _CACHEBUFFERS_PROTOS_H
4 #include <exec/types.h>
5 #include "blockstructure.h"
6 #include "cachebuffers.h"
8 LONG initcachebuffers(void);
10 LONG readcachebuffer(struct CacheBuffer **, BLCK);
11 LONG writecachebuffer(struct CacheBuffer *cb);
13 LONG readoriginalcachebuffer(struct CacheBuffer **returned_cb,BLCK blckno);
14 void emptyoriginalcachebuffer(BLCK blckno);
16 void lockcachebuffer(struct CacheBuffer *cb);
17 void unlockcachebuffer(struct CacheBuffer *cb);
19 void preparecachebuffer(struct CacheBuffer *cb);
20 LONG storecachebuffer(struct CacheBuffer *cb);
21 LONG storecachebuffer_nochecksum(struct CacheBuffer *cb);
22 struct CacheBuffer *newcachebuffer(BLCK blckno);
23 LONG changecachebuffer(struct CacheBuffer *cb, UBYTE *modifiedblocks);
25 struct CacheBuffer *findoriginalcachebuffer(BLCK blckno);
26 struct CacheBuffer *findlatestcachebuffer(BLCK blckno);
28 struct CacheBuffer *saveoriginalcachebuffer(struct CacheBuffer *cb);
29 struct CacheBuffer *createnewcachebuffer(BLCK block);
31 struct CacheBuffer *getcachebuffer(void);
33 void dumpcachebuffer(struct CacheBuffer *cb);
34 void emptycachebuffer(struct CacheBuffer *cb);
35 void clearcachebuffer(struct CacheBuffer *cb);
36 void resetcachebuffer(struct CacheBuffer *cb);
38 LONG addcachebuffers(LONG buffers);
39 void invalidatecachebuffers(void);
41 void dumpcachebuffers(void);
43 #endif // _CACHEBUFFERS_PROTOS_H