5 * ADF Library. (C) 1997-1999 Laurent Clevy
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 */