summaryrefslogtreecommitdiff
path: root/mythfs/service/service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mythfs/service/service.cpp')
-rw-r--r--mythfs/service/service.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/mythfs/service/service.cpp b/mythfs/service/service.cpp
new file mode 100644
index 0000000..8a2e77d
--- /dev/null
+++ b/mythfs/service/service.cpp
@@ -0,0 +1,13 @@
+#include "service.h"
+#include <Ice/ObjectAdapter.h>
+#include <Ice/Communicator.h>
+
+namespace MythFS {
+ ::NetFS::VolumePrx
+ Service::connect(const std::string & volume, const std::string &, const Ice::Current & ic)
+ {
+ return ::NetFS::VolumePrx::checkedCast(
+ ic.adapter->createProxy(ic.adapter->getCommunicator()->stringToIdentity(volume)));
+ }
+}
+