define __KERNEL_STRICT_NAMES to avoid inclusion of kernel types on systems that carry...
[cake.git] / tools / adflib / adf_cache.h
blob2c2ba73e68a200d9df7f37e58cc6401e82a8207d
1 #ifndef _ADF_CACHE_H
2 #define _ADF_CACHE_H 1
3 /*
4 * ADF Library. (C) 1997-1999 Laurent Clevy
6 * adf_cache.h
8 */
11 #include "adf_str.h"
13 void adfGetCacheEntry(struct bDirCacheBlock *dirc, int *p, struct CacheEntry *cEntry);
14 int adfPutCacheEntry( struct bDirCacheBlock *dirc, int *p, struct CacheEntry *cEntry);
16 struct List* adfGetDirEntCache(struct Volume *vol, SECTNUM dir, BOOL recurs);
18 RETCODE adfCreateEmptyCache(struct Volume *vol, struct bEntryBlock *parent, SECTNUM nSect);
19 RETCODE adfAddInCache(struct Volume *vol, struct bEntryBlock *parent, struct bEntryBlock *entry);
20 RETCODE adfUpdateCache(struct Volume *vol, struct bEntryBlock *parent, struct bEntryBlock *entry, BOOL);
21 RETCODE adfDelFromCache(struct Volume *vol, struct bEntryBlock *parent, SECTNUM);
23 RETCODE adfReadDirCBlock(struct Volume *vol, SECTNUM nSect, struct bDirCacheBlock *dirc);
24 RETCODE adfWriteDirCBlock(struct Volume*, long, struct bDirCacheBlock* dirc);
26 #endif /* _ADF_CACHE_H */
28 /*##########################################################################*/