summaryrefslogtreecommitdiff
path: root/src/repo.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-07-22 22:14:31 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-07-22 22:14:31 +0100
commitdb00a9699e3b12e5f1b79b55a4fd35c4e1dee163 (patch)
tree1b706ea330f7399f7c0c5cb4dc43b5f7f7ba4815 /src/repo.h
parentUnline git helpers and throw NetFS exceptions (diff)
downloadnetfs-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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/repo.h b/src/repo.h
index 0b8cc56..18b1057 100644
--- a/src/repo.h
+++ b/src/repo.h
@@ -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;
};
}