Added "support" for the 64 bit data structures of EHCI in appendix B, in case the...
[cake.git] / tools / adflib / adf_dir.h
blobd652c1732fe03461f2769f4768a5525b0b276a5d
1 #ifndef ADF_DIR_H
2 #define ADF_DIR_H 1
4 /*
5 * ADF Library. (C) 1997-1999 Laurent Clevy
7 * adf_dir.h
9 */
11 #include"adf_str.h"
12 #include"adf_err.h"
13 #include"adf_defs.h"
15 #include"prefix.h"
17 PREFIX RETCODE adfToRootDir(struct Volume *vol);
18 BOOL isDirEmpty(struct bDirBlock *dir);
19 PREFIX RETCODE adfRemoveEntry(struct Volume *vol, SECTNUM pSect, char *name);
20 PREFIX struct List* adfGetDirEnt(struct Volume* vol, SECTNUM nSect );
21 PREFIX struct List* adfGetRDirEnt(struct Volume* vol, SECTNUM nSect, BOOL recurs );
22 PREFIX void adfFreeDirList(struct List* list);
24 RETCODE adfEntBlock2Entry(struct bEntryBlock *entryBlk, struct Entry *entry);
25 PREFIX void adfFreeEntry(struct Entry *entry);
26 RETCODE adfCreateFile(struct Volume* vol, SECTNUM parent, char *name,
27 struct bFileHeaderBlock *fhdr);
28 PREFIX RETCODE adfCreateDir(struct Volume* vol, SECTNUM parent, char* name);
29 SECTNUM adfCreateEntry(struct Volume *vol, struct bEntryBlock *dir, char *name, SECTNUM );
30 PREFIX RETCODE adfRenameEntry(struct Volume *vol, SECTNUM, char *old,SECTNUM,char *new);
33 RETCODE adfReadEntryBlock(struct Volume* vol, SECTNUM nSect, struct bEntryBlock* ent);
34 RETCODE adfWriteDirBlock(struct Volume* vol, SECTNUM nSect, struct bDirBlock *dir);
35 RETCODE adfWriteEntryBlock(struct Volume* vol, SECTNUM nSect, struct bEntryBlock *ent);
37 char* adfAccess2String(long acc);
38 unsigned char adfIntlToUpper(unsigned char c);
39 int adfGetHashValue(unsigned char *name, BOOL intl);
40 void myToUpper( unsigned char *ostr, unsigned char *nstr, int,BOOL intl );
41 PREFIX RETCODE adfChangeDir(struct Volume* vol, char *name);
42 PREFIX RETCODE adfParentDir(struct Volume* vol);
43 PREFIX RETCODE adfSetEntryAccess(struct Volume*, SECTNUM, char*, long);
44 PREFIX RETCODE adfSetEntryComment(struct Volume*, SECTNUM, char*, char*);
45 SECTNUM adfNameToEntryBlk(struct Volume *vol, long ht[], char* name,
46 struct bEntryBlock *entry, SECTNUM *);
48 PREFIX void printEntry(struct Entry* entry);
49 void adfFreeDirList(struct List* list);
51 #endif /* ADF_DIR_H */