17typedef struct VFSProvider {
23 flags_t (*flags)(_In_
void* self);
25 _Ret_opt_valid_
File* (*open)(_In_
void* self, _In_opt_ strref path, flags_t flags);
27 bool (*setTimes)(_In_
void* self, _In_opt_ strref path, int64 modified, int64 accessed);
28 bool (*createDir)(_In_
void* self, _In_opt_ strref path);
29 bool (*removeDir)(_In_
void* self, _In_opt_ strref path);
30 bool (*deleteFile)(_In_
void* self, _In_opt_ strref path);
31 bool (*rename)(_In_
void* self, _In_opt_ strref oldpath, _In_opt_ strref newpath);
32 bool (*getFSPath)(_In_
void* self, _Inout_
string* out, _In_opt_ strref path);
33 bool (*searchInit)(_In_
void* self, _Out_
FSSearchIter* iter, _In_opt_ strref path, _In_opt_ strref pattern,
bool stat);
34 bool (*searchValid)(_In_
void* self, _In_
FSSearchIter* iter);
35 bool (*searchNext)(_In_
void* self, _Inout_
FSSearchIter* iter);
36 void (*searchFinish)(_In_
void* self, _Inout_
FSSearchIter* iter);
38extern VFSProvider VFSProvider_tmpl;
Low-level file I/O operations.
Platform-specific filesystem operations.
enum FSPathStatEnum FSPathStat
@ FS_Nonexistent
Path does not exist.
CX Struct System - Introspectable, serializable POD structures in C.
CX Object System - Object-oriented programming in C.