46typedef struct VirDirNode
48 struct VirDirNode* next;
49 struct VirDirNode* subDir;
50 struct VirFileNode* firstFile;
55typedef struct VirFileNode
57 struct VirFileNode* next;
62typedef enum { VirDir_NotFound=0, VirDir_IsDir, VirDir_IsFile } VirDir_Type;
63typedef void (*VirFileNode_Free)(VirFileNode* o,
AllocatorIntf* alloc);
64void VirFileNode_constructor(VirFileNode* o,
const char* name);
65void VirDirNode_constructor(VirDirNode* o,
const char* name,
size_t len);
66VirDir_Type VirDirNode_find(VirDirNode* o,
const char* relPath,
void** retVal);
67VirDirNode* VirDirNode_findSubDir(VirDirNode* o,
const char* name,
size_t len);
68VirFileNode* VirDirNode_findFile(VirDirNode* o,
const char* name);
69VirDirNode* VirDirNode_makeDir(VirDirNode* o,
const char* pathName,
71int VirDirNode_mkDirInsertFile(VirDirNode* o,
const char* pathName,
75 VirDirNode* o,
AllocatorIntf* alloc,VirFileNode_Free freeNode);
Memory allocation and deallocation Interface class.
Definition: AllocatorIntf.h:98