summaryrefslogtreecommitdiffstats
path: root/src/cppc4group.hpp
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2018-08-18 23:11:02 +0200
committerMarkus Mittendrein <git@maxmitti.tk>2018-08-18 23:33:27 +0200
commit4338534c9cdacf98c310ab625a1d17988dde1949 (patch)
tree213b60d796a33efeb2649fbadb6dff62ab7d8ff2 /src/cppc4group.hpp
parent88552afbb4b41b6f859e7051cc0e4b0efbecea78 (diff)
downloadcc4group-4338534c9cdacf98c310ab625a1d17988dde1949.tar.gz
cc4group-4338534c9cdacf98c310ab625a1d17988dde1949.zip
Add possibility to leave data ownership to the caller of setEntryData and remove possibility to specify entry data with createFile
Diffstat (limited to 'src/cppc4group.hpp')
-rw-r--r--src/cppc4group.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cppc4group.hpp b/src/cppc4group.hpp
index 2e75462..1367bc7 100644
--- a/src/cppc4group.hpp
+++ b/src/cppc4group.hpp
@@ -15,7 +15,7 @@ public:
size_t size;
Data();
- Data(const void* data, size_t size);
+ Data(const void* const data, const size_t size);
};
struct EntryInfo {
@@ -68,7 +68,7 @@ public:
bool createDirectory(const std::string& path);
- bool createFile(const std::string& path, void* data = nullptr, size_t size = 0);
+ bool createFile(const std::string& path);
- bool setEntryData(const std::string& path, void* data = nullptr, size_t size = 0);
+ bool setEntryData(const std::string& path, const void* const data = nullptr, const size_t size = 0, const bool freeData = true);
};