00001
00002
00003
00004
00005
00006 #ifndef _ATTRCACHE_H
00007 #define _ATTRCACHE_H
00008
00009 typedef struct Aname
00010 {
00011 unsigned int object;
00012 unsigned int attrnum;
00013 } Aname;
00014
00015 extern const char *cache_get(Aname *nam, int *pLen);
00016 extern bool cache_put(Aname *nam, const char *obj, size_t len);
00017 extern int cache_init(const char *game_dir_file, const char *game_pag_file,
00018 int nCachePages);
00019 extern void cache_close(void);
00020 extern void cache_tick(void);
00021 extern bool cache_sync(void);
00022 extern void cache_del(Aname *nam);
00023
00024 #endif // !_ATTRCACHE_H