2025-07-03 20:18:05 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
2025-12-06 13:55:14 -06:00
|
|
|
#include "fs_path.hpp"
|
|
|
|
|
|
|
|
|
|
#include <map>
|
2025-07-03 20:18:05 -05:00
|
|
|
#include <string>
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace mergerfs
|
|
|
|
|
{
|
|
|
|
|
namespace api
|
|
|
|
|
{
|
2025-12-06 13:55:14 -06:00
|
|
|
bool
|
|
|
|
|
is_mergerfs(const fs::path &path);
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
|
get_kvs(const fs::path &mountpoint,
|
|
|
|
|
std::map<std::string,std::string> *kvs);
|
|
|
|
|
|
2025-07-03 20:18:05 -05:00
|
|
|
int
|
|
|
|
|
basepath(const std::string &path,
|
|
|
|
|
std::string &basepath);
|
|
|
|
|
int
|
|
|
|
|
relpath(const std::string &path,
|
|
|
|
|
std::string &relpath);
|
|
|
|
|
int
|
|
|
|
|
fullpath(const std::string &path,
|
|
|
|
|
std::string &fullpath);
|
|
|
|
|
int
|
|
|
|
|
allpaths(const std::string &path,
|
|
|
|
|
std::vector<std::string> &paths);
|
|
|
|
|
}
|
|
|
|
|
}
|