diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-07-22 22:14:31 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-07-22 22:14:31 +0100 |
commit | db00a9699e3b12e5f1b79b55a4fd35c4e1dee163 (patch) | |
tree | 1b706ea330f7399f7c0c5cb4dc43b5f7f7ba4815 /src/repo.h | |
parent | Unline git helpers and throw NetFS exceptions (diff) | |
download | netfs-gitfs-db00a9699e3b12e5f1b79b55a4fd35c4e1dee163.tar.bz2 netfs-gitfs-db00a9699e3b12e5f1b79b55a4fd35c4e1dee163.tar.xz netfs-gitfs-db00a9699e3b12e5f1b79b55a4fd35c4e1dee163.zip |
Replace hard-coded test values with properties
Diffstat (limited to 'src/repo.h')
-rw-r--r-- | src/repo.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,14 +1,16 @@ #ifndef GITFS_REPO_H #define GITFS_REPO_H +#include <Ice/Properties.h> #include <volume.h> #include "git.h" namespace GitFS { using namespace NetFS; + using PropertyReader = std::function<std::string(const std::string_view &)>; class Repo : public Volume { public: - Repo(); + Repo(const PropertyReader &); void disconnect(const ::Ice::Current& current) override; DirectoryPrxPtr opendir(ReqEnv env, ::std::string path, const ::Ice::Current& current) override; @@ -36,6 +38,7 @@ namespace GitFS { Git::RepositoryPtr repo; Git::CommitPtr commit; Git::TreePtr tree; + const std::string gid, uid; }; } |