blob: 37653cb9ec313fabff7281aec5fed26bd1e43e18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#pragma once
#include <cstdint>
#include <filesystem>
#include <string>
#include <vector>
#define EXPORT __attribute__((visibility("default")))
namespace File {
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);
}
|