mirror of https://github.com/trapexit/mergerfs.git
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.
39 lines
794 B
39 lines
794 B
#pragma once
|
|
|
|
#include "fs_path.hpp"
|
|
|
|
#include <map>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
|
|
namespace mergerfs
|
|
{
|
|
namespace api
|
|
{
|
|
bool
|
|
is_mergerfs(const fs::path &path);
|
|
|
|
int
|
|
get_kvs(const fs::path &mountpoint,
|
|
std::map<std::string,std::string> *kvs);
|
|
|
|
int
|
|
set_kv(const fs::path &mountpoint,
|
|
const std::string &key,
|
|
const std::string &val);
|
|
|
|
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);
|
|
}
|
|
}
|