00001 #ifndef DIRCACHE_H 00002 #define DIRCACHE_H 00003 00004 /* #include "ubixfs.h" */ 00005 #include <ubixos/types.h> 00006 00007 struct cacheNode { 00008 char * name; 00009 struct cacheNode * prev; 00010 struct cacheNode * next; 00011 struct cacheNode * parent; 00012 struct cacheNode * fileListHead; 00013 struct cacheNode * fileListTail; 00014 void * info; 00015 int * size; 00016 int present; 00017 int dirty; 00018 uInt32 * startCluster; 00019 uInt16 * attributes; 00020 uInt16 * permissions; 00021 }; /* cacheNode */ 00022 00023 struct cacheNode * ubixfs_cacheFind(struct cacheNode *, char *); 00024 struct cacheNode * ubixfs_cacheNew(const char *); 00025 void ubixfs_cacheDelete(struct cacheNode **); 00026 struct cacheNode * ubixfs_cacheAdd(struct cacheNode *, struct cacheNode *); 00027 00028 #endif /* !DIRCACHE_H */