revert between 56095 -> 55830 in arch
[AROS.git] / rom / filesys / SFS / FS / transactions_protos.h
blob1d39ff9f9448f0e7772caa799486344d62a2aecb
1 #ifndef _TRANSACTIONS_PROTOS_H
2 #define _TRANSACTIONS_PROTOS_H
4 #include <exec/types.h>
5 #include "blockstructure.h"
6 #include "cachebuffers.h"
8 // LONG savetransaction(BLCK *firsttransactionblock);
9 // void combineoperations(void);
10 LONG addoperation(BLCK block,UBYTE *data,UWORD length,UBYTE bits);
11 LONG addfreeoperation(BLCK block);
12 struct Operation *getlatestoperation(BLCK block);
14 #ifdef NOCOMPRESSION
15 LONG addoperation2(struct CacheBuffer *cb_org, struct CacheBuffer *cb_new);
16 #endif
18 void removeoperation(struct Operation *o);
19 LONG applyoperation(BLCK blckno,struct CacheBuffer **returned_cb);
20 LONG checkfortransaction(void);
21 ULONG transactionspace(void);
22 WORD isthereanoperationfor(BLCK block);
24 void newtransaction(void);
25 void endtransaction(void);
26 void deletetransaction(void);
27 LONG flushtransaction(void);
28 LONG inittransactions(void);
29 void cleanuptransactions(void);
30 BOOL hastransaction(void);
32 void restorecachebuffer(struct CacheBuffer *cb);
34 #endif // _TRANSACTIONS_PROTOS_H