summaryrefslogtreecommitdiff
path: root/src/repo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/repo.h')
-rw-r--r--src/repo.h46
1 files changed, 24 insertions, 22 deletions
diff --git a/src/repo.h b/src/repo.h
index 795dd87..0087a3f 100644
--- a/src/repo.h
+++ b/src/repo.h
@@ -12,38 +12,40 @@
#include <string_view>
#include <types.h>
#include <volume.h>
+
namespace Ice {
struct Current;
}
namespace GitFS {
using namespace NetFS;
- using PropertyReader = std::function<std::string(const std::string_view &)>;
+ using PropertyReader = std::function<std::string(const std::string_view)>;
+
class Repo : public Volume {
public:
- Repo(const PropertyReader &);
+ explicit Repo(const PropertyReader &);
- void disconnect(const ::Ice::Current & current) override;
- DirectoryPrxPtr opendir(ReqEnv env, ::std::string path, const ::Ice::Current & current) override;
- VFS statfs(ReqEnv env, ::std::string path, const ::Ice::Current & current) override;
- int access(ReqEnv env, ::std::string path, int mode, const ::Ice::Current & current) override;
- Attr getattr(ReqEnv env, ::std::string path, const ::Ice::Current & current) override;
- ::std::string readlink(ReqEnv env, ::std::string path, const ::Ice::Current & current) override;
- FilePrxPtr open(ReqEnv env, ::std::string path, int flags, const ::Ice::Current & current) override;
- FilePrxPtr create(ReqEnv env, ::std::string path, int flags, int mode, const ::Ice::Current & current) override;
- void truncate(ReqEnv env, ::std::string path, long long int size, const ::Ice::Current & current) override;
- void unlink(ReqEnv env, ::std::string path, const ::Ice::Current & current) override;
- void mkdir(ReqEnv env, ::std::string path, int mode, const ::Ice::Current & current) override;
- void rmdir(ReqEnv env, ::std::string path, const ::Ice::Current & current) override;
- void mknod(ReqEnv env, ::std::string path, int mode, int dev, const ::Ice::Current & current) override;
- void symlink(ReqEnv env, ::std::string path1, ::std::string path2, const ::Ice::Current & current) override;
- void link(ReqEnv env, ::std::string path1, ::std::string path2, const ::Ice::Current & current) override;
- void rename(ReqEnv env, ::std::string from, ::std::string to, const Ice::optional<Ice::Int>,
- const ::Ice::Current & current) override;
- void chmod(ReqEnv env, ::std::string path, int mode, const ::Ice::Current & current) override;
- void chown(ReqEnv env, ::std::string path, int uid, int gid, const ::Ice::Current & current) override;
+ void disconnect(const ::Ice::Current & ice) override;
+ DirectoryPrxPtr opendir(ReqEnv env, ::std::string path, const ::Ice::Current & ice) override;
+ VFS statfs(ReqEnv env, ::std::string path, const ::Ice::Current & ice) override;
+ int access(ReqEnv env, ::std::string path, int mode, const ::Ice::Current & ice) override;
+ Attr getattr(ReqEnv env, ::std::string path, const ::Ice::Current & ice) override;
+ ::std::string readlink(ReqEnv env, ::std::string path, const ::Ice::Current & ice) override;
+ FilePrxPtr open(ReqEnv env, ::std::string path, int flags, const ::Ice::Current & ice) override;
+ FilePrxPtr create(ReqEnv env, ::std::string path, int flags, int mode, const ::Ice::Current & ice) override;
+ void truncate(ReqEnv env, ::std::string path, long long int size, const ::Ice::Current & ice) override;
+ void unlink(ReqEnv env, ::std::string path, const ::Ice::Current & ice) override;
+ void mkdir(ReqEnv env, ::std::string path, int mode, const ::Ice::Current & ice) override;
+ void rmdir(ReqEnv env, ::std::string path, const ::Ice::Current & ice) override;
+ void mknod(ReqEnv env, ::std::string path, int mode, int dev, const ::Ice::Current & ice) override;
+ void symlink(ReqEnv env, ::std::string path1, ::std::string path2, const ::Ice::Current & ice) override;
+ void link(ReqEnv env, ::std::string path1, ::std::string path2, const ::Ice::Current & ice) override;
+ void rename(ReqEnv env, ::std::string pathFrom, ::std::string pathTo, Ice::optional<Ice::Int>,
+ const ::Ice::Current & ice) override;
+ void chmod(ReqEnv env, ::std::string path, int mode, const ::Ice::Current & ice) override;
+ void chown(ReqEnv env, ::std::string path, int uid, int gid, const ::Ice::Current & ice) override;
void utimens(ReqEnv env, ::std::string path, long long int atime, long long int atimens, long long int mtime,
- long long int mtimens, const ::Ice::Current & current) override;
+ long long int mtimens, const ::Ice::Current & ice) override;
private:
void update();