diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-02-14 18:00:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-02-14 18:00:20 +0300 |
commit | 5283a59db971ec2038149bf26ad9b3cbc4924449 (patch) | |
tree | c2f208b197a3726d6358ca707b64d01887bb6151 /src/utils/virtfs.h | |
parent | 59146da772888a295bbf8613f32bce5dd7bb00ab (diff) | |
download | plus-5283a59db971ec2038149bf26ad9b3cbc4924449.tar.gz plus-5283a59db971ec2038149bf26ad9b3cbc4924449.tar.bz2 plus-5283a59db971ec2038149bf26ad9b3cbc4924449.tar.xz plus-5283a59db971ec2038149bf26ad9b3cbc4924449.zip |
Add virtlist for file names enumeration in virtfs.
Diffstat (limited to 'src/utils/virtfs.h')
-rw-r--r-- | src/utils/virtfs.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/virtfs.h b/src/utils/virtfs.h index dc6e1e4e0..5888d52eb 100644 --- a/src/utils/virtfs.h +++ b/src/utils/virtfs.h @@ -28,6 +28,7 @@ #include <string> struct VirtFile; +struct VirtList; namespace VirtFs { @@ -37,9 +38,9 @@ namespace VirtFs const char *getBaseDir(); const char *getUserDir(); bool exists(const char *restrict const fname); - char **enumerateFiles(const char *restrict const dir); + VirtList *enumerateFiles(const std::string &restrict dir) RETURNS_NONNULL; bool isDirectory(const char *restrict const fname); - void freeList(void *restrict const listVar); + void freeList(VirtList *restrict const handle); VirtFile *openRead(const char *restrict const filename); VirtFile *openWrite(const char *restrict const filename); VirtFile *openAppend(const char *restrict const filename); |