2024-01-24 21:53:35 -06:00
|
|
|
#include "ghc/filesystem.hpp"
|
2024-01-25 22:43:00 -06:00
|
|
|
#include "toml.hpp"
|
|
|
|
|
|
2024-01-24 21:52:51 -06:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
2024-01-24 21:48:36 -06:00
|
|
|
class Branch2
|
|
|
|
|
{
|
|
|
|
|
public:
|
2024-01-24 21:49:02 -06:00
|
|
|
enum class Mode
|
2024-01-24 21:48:36 -06:00
|
|
|
{
|
|
|
|
|
RO,
|
|
|
|
|
RW,
|
|
|
|
|
NC
|
|
|
|
|
};
|
2024-01-25 22:39:33 -06:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
Branch2(toml::value const &);
|
2024-01-24 21:48:36 -06:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
bool enabled;
|
2024-01-24 21:49:25 -06:00
|
|
|
Mode mode;
|
2024-01-24 21:52:51 -06:00
|
|
|
uint64_t min_free_space;
|
2024-01-24 22:06:39 -06:00
|
|
|
int fd;
|
2024-01-24 22:04:13 -06:00
|
|
|
ghc::filesystem::path path;
|
2024-01-24 21:48:36 -06:00
|
|
|
};
|