From 76918895fabc86f492044379a4acc34539747e92 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 7 Oct 2023 11:59:43 +0100 Subject: Update to latest NetFS interface --- mythfs/service/service.cpp | 12 ++++++++---- mythfs/service/service.h | 8 ++++---- 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 #include +#include 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 #include +#include 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 - -- cgit v1.2.3