summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-