summaryrefslogtreecommitdiff
path: root/src/utils/virtfs.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-14 18:00:20 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-14 18:00:20 +0300
commit5283a59db971ec2038149bf26ad9b3cbc4924449 (patch)
treec2f208b197a3726d6358ca707b64d01887bb6151 /src/utils/virtfs.h
parent59146da772888a295bbf8613f32bce5dd7bb00ab (diff)
downloadplus-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.h5
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);