summaryrefslogtreecommitdiff
path: root/src/repoList.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-05-29 11:31:51 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-05-29 11:31:51 +0100
commitd1dd13984271090307a91e730a5196503d32d95e (patch)
tree4bcdb14aff04150899ec4b334901b4da312a7348 /src/repoList.cpp
parentFix up all warnings from all the tools (diff)
downloadnetfs-gitfs-main.tar.bz2
netfs-gitfs-main.tar.xz
netfs-gitfs-main.zip
Update to NetFS 1.5 interfaceHEADnetfs-gitfs-0.2.3main
Diffstat (limited to 'src/repoList.cpp')
-rw-r--r--src/repoList.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/repoList.cpp b/src/repoList.cpp
index 2a50421..7a69b78 100644
--- a/src/repoList.cpp
+++ b/src/repoList.cpp
@@ -1,5 +1,6 @@
#include "repoList.h"
#include "repo.h"
+#include <Ice/Communicator.h>
#include <Ice/Current.h>
#include <Ice/ObjectAdapter.h>
#include <Ice/Properties.h>
@@ -33,3 +34,10 @@ GitFS::RepoList::connect(const ::std::string volume, const ::std::string auth, c
}
return Ice::uncheckedCast<NetFS::VolumePrx>(ice.adapter->addWithUUID(std::make_shared<Repo>(propReader)));
}
+
+NetFS::SettingsPtr
+GitFS::RepoList::getSettings(const ::Ice::Current & ice)
+{
+ const auto props = ice.adapter->getCommunicator()->getProperties();
+ return std::make_shared<NetFS::Settings>(props->getPropertyAsIntWithDefault("Ice.MessageSizeMax", 1024));
+}