summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-10-07 11:59:43 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-10-07 11:59:43 +0100
commit76918895fabc86f492044379a4acc34539747e92 (patch)
tree34b074f8b47b5a804e1bd26e6b238dd886bcc169
parentUpdate to C++20 (diff)
downloadmythfs-main.tar.bz2
mythfs-main.tar.xz
mythfs-main.zip
Update to latest NetFS interfaceHEADmain
-rw-r--r--mythfs/service/service.cpp12
-rw-r--r--mythfs/service/service.h8
2 files changed, 12 insertions, 8 deletions
diff --git a/mythfs/service/service.cpp b/mythfs/service/service.cpp
index df7103d..2204592 100644
--- a/mythfs/service/service.cpp
+++ b/mythfs/service/service.cpp
@@ -1,13 +1,17 @@
#include "service.h"
-#include <Ice/ObjectAdapter.h>
#include <Ice/Initialize.h>
+#include <Ice/ObjectAdapter.h>
namespace MythFS {
::NetFS::VolumePrxPtr
Service::connect(const std::string volume, const std::string, const Ice::Current & ic)
{
- return Ice::checkedCast<::NetFS::VolumePrx>(
- ic.adapter->createProxy(Ice::stringToIdentity(volume)));
+ return Ice::checkedCast<::NetFS::VolumePrx>(ic.adapter->createProxy(Ice::stringToIdentity(volume)));
}
-}
+ ::NetFS::SettingsPtr
+ Service::getSettings(const Ice::Current &)
+ {
+ return std::make_shared<::NetFS::Settings>();
+ }
+}
diff --git a/mythfs/service/service.h b/mythfs/service/service.h
index 758cc9b..cea8185 100644
--- a/mythfs/service/service.h
+++ b/mythfs/service/service.h
@@ -1,15 +1,15 @@
#ifndef MYTHFS_SERVICE_H
#define MYTHFS_SERVICE_H
-#include <visibility.h>
#include <service.h>
+#include <visibility.h>
namespace MythFS {
class Service : public ::NetFS::Service {
- public:
- ::NetFS::VolumePrxPtr connect(const std::string, const ::std::string, const Ice::Current &) override;
+ public:
+ ::NetFS::VolumePrxPtr connect(const std::string, const ::std::string, const Ice::Current &) override;
+ ::NetFS::SettingsPtr getSettings(const Ice::Current &) override;
};
}
#endif
-