summaryrefslogtreecommitdiff
path: root/src/utils/virtfs.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-14 20:34:06 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-14 20:59:26 +0300
commitbdec92381ef60cd027292ed63e254e8de70028d9 (patch)
treeebf2722cdc9fe7383a709ba1584432a491cf10ba /src/utils/virtfs.h
parent5283a59db971ec2038149bf26ad9b3cbc4924449 (diff)
downloadmv-bdec92381ef60cd027292ed63e254e8de70028d9.tar.gz
mv-bdec92381ef60cd027292ed63e254e8de70028d9.tar.bz2
mv-bdec92381ef60cd027292ed63e254e8de70028d9.tar.xz
mv-bdec92381ef60cd027292ed63e254e8de70028d9.zip
In virtfs replace parameters type from char* to std::string.
Diffstat (limited to 'src/utils/virtfs.h')
-rw-r--r--src/utils/virtfs.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/utils/virtfs.h b/src/utils/virtfs.h
index 5888d52eb..4f4471ad0 100644
--- a/src/utils/virtfs.h
+++ b/src/utils/virtfs.h
@@ -32,18 +32,18 @@ struct VirtList;
namespace VirtFs
{
- void init(const char *restrict const name);
+ void init(const std::string &restrict name);
void updateDirSeparator();
const char *getDirSeparator();
const char *getBaseDir();
const char *getUserDir();
- bool exists(const char *restrict const fname);
+ bool exists(const std::string &restrict name);
VirtList *enumerateFiles(const std::string &restrict dir) RETURNS_NONNULL;
- bool isDirectory(const char *restrict const fname);
+ bool isDirectory(const std::string &restrict name);
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);
+ VirtFile *openRead(const std::string &restrict filename);
+ VirtFile *openWrite(const std::string &restrict filename);
+ VirtFile *openAppend(const std::string &restrict filename);
bool setWriteDir(const std::string &restrict newDir);
bool addDirToSearchPath(const std::string &restrict newDir,
const Append append);
@@ -51,8 +51,8 @@ namespace VirtFs
bool addZipToSearchPath(const std::string &restrict newDir,
const Append append);
bool removeZipFromSearchPath(const std::string &restrict oldDir);
- const char *getRealDir(const char *restrict const filename);
- bool mkdir(const char *restrict const dirName);
+ const char *getRealDir(const std::string &restrict filename);
+ bool mkdir(const std::string &restrict dirName);
bool deinit();
void permitLinks(const bool val);
const char *getLastError();