summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netfs/daemon/daemon.cpp4
-rw-r--r--netfs/fuse/fuseApp.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/netfs/daemon/daemon.cpp b/netfs/daemon/daemon.cpp
index 4db21cb..d5af905 100644
--- a/netfs/daemon/daemon.cpp
+++ b/netfs/daemon/daemon.cpp
@@ -3,7 +3,6 @@
#include "daemonService.h"
#include "daemonVolume.h"
#include <slicer/slicer.h>
-#include <xml/serializer.h>
#include "modeCheck.h"
#include <sys/stat.h>
@@ -47,7 +46,8 @@ NetFSDaemon::start(const std::string & name, const Ice::CommunicatorPtr & ic, co
NetFS::Daemon::ConfigurationPtr
NetFSDaemon::ReadConfiguration(const boost::filesystem::path & path) const
{
- return Slicer::DeserializeAny<Slicer::XmlFileDeserializer, NetFS::Daemon::ConfigurationPtr>(path);
+ auto s = Slicer::FileDeserializerFactory::createNew(path.extension().string(), path);
+ return Slicer::DeserializeAnyWith<NetFS::Daemon::ConfigurationPtr>(s);
}
void
diff --git a/netfs/fuse/fuseApp.cpp b/netfs/fuse/fuseApp.cpp
index a7d84b5..8bd73cd 100644
--- a/netfs/fuse/fuseApp.cpp
+++ b/netfs/fuse/fuseApp.cpp
@@ -5,7 +5,6 @@
#include "cache.impl.h"
#include <entCache.h>
#include <slicer/slicer.h>
-#include <xml/serializer.h>
#include <uriParse.h>
namespace AdHoc {
@@ -63,7 +62,8 @@ NetFS::FuseApp::~FuseApp()
NetFS::Client::ConfigurationPtr
NetFS::FuseApp::ReadConfiguration(const boost::filesystem::path & path) const
{
- return Slicer::DeserializeAny<Slicer::XmlFileDeserializer, NetFS::Client::ConfigurationPtr>(path);
+ auto s = Slicer::FileDeserializerFactory::createNew(path.extension().string(), path);
+ return Slicer::DeserializeAnyWith<NetFS::Client::ConfigurationPtr>(s);
}
void *