You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
394 B

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. #pragma once
  2. #include "ghc/filesystem.hpp"
  3. #include "toml.hpp"
  4. #include "enum.h"
  5. #include <stdint.h>
  6. BETTER_ENUM(BranchMode,int,RO,RW,NC);
  7. class Branch2
  8. {
  9. public:
  10. typedef BranchMode Mode;
  11. public:
  12. Branch2();
  13. Branch2(Branch2 &&);
  14. Branch2(toml::value const &);
  15. ~Branch2();
  16. public:
  17. bool enabled;
  18. Mode mode;
  19. uint64_t min_free_space;
  20. int fd;
  21. ghc::filesystem::path path;
  22. };