summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Jamroot.jam6
-rw-r--r--mythfs/service/service.cpp12
-rw-r--r--mythfs/service/service.h8
3 files changed, 14 insertions, 12 deletions
diff --git a/Jamroot.jam b/Jamroot.jam
index 89d5029..ca384c7 100644
--- a/Jamroot.jam
+++ b/Jamroot.jam
@@ -8,14 +8,12 @@ import pkg-config ;
variant component ;
variant coverage : debug ;
-project
- : requirements
+project mythfs : requirements
<define>ICE_CPP11_MAPPING
<cxxstd>20
<visibility>hidden
<linkflags>"-Wl,-z,defs,--warn-once,--gc-sections"
- <variant>release:<cxxflags>"-flto=2"
- <variant>release:<linkflags>"-flto=2"
+ <variant>release:<lto>on-thin
<variant>debug:<cxxflags>"-W -Wall -Werror -Wextra"
<variant>coverage:<cxxflags>"--coverage"
<variant>coverage:<linkflags>"--coverage"
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
-