diff options
Diffstat (limited to 'file.h')
-rw-r--r-- | file.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -5,11 +5,13 @@ #include <string> #include <vector> +#define EXPORT __attribute__((visibility("default"))) + namespace File { -std::string getFile(const std::filesystem::path& filename); -void setFile(const std::filesystem::path& filename, const std::string& s); -void setFile(const std::filesystem::path& filename, const char* data, size_t size); -void setFile(const std::filesystem::path& filename, const std::vector<uint8_t>& data); +EXPORT std::string getFile(const std::filesystem::path& filename); +EXPORT void setFile(const std::filesystem::path& filename, const std::string& s); +EXPORT void setFile(const std::filesystem::path& filename, const char* data, size_t size); +EXPORT void setFile(const std::filesystem::path& filename, const std::vector<uint8_t>& data); } |