summaryrefslogtreecommitdiffstats
path: root/src/Client/InformationManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Client/InformationManager.cpp')
-rw-r--r--src/Client/InformationManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Client/InformationManager.cpp b/src/Client/InformationManager.cpp
index bcdb4a9..0021d49 100644
--- a/src/Client/InformationManager.cpp
+++ b/src/Client/InformationManager.cpp
@@ -27,7 +27,7 @@
namespace Mad {
namespace Client {
-void InformationManager::DaemonStateUpdateRequestHandler::handleRequest(boost::shared_ptr<const Common::XmlPacket> packet, Common::XmlPacket *ret) {
+void InformationManager::DaemonStateUpdateRequestHandler::handleRequest(boost::shared_ptr<const Common::XmlData> packet, Common::XmlData *ret) {
if(!getConnection()->isAuthenticated())
throw(Core::Exception(Core::Exception::PERMISSION));
@@ -69,19 +69,19 @@ void InformationManager::updateDaemonList(Common::Connection *con) {
updating = true;
}
-void InformationManager::daemonListRequestFinished(boost::shared_ptr<const Common::XmlPacket> packet, Core::Exception error) {
+void InformationManager::daemonListRequestFinished(boost::shared_ptr<const Common::XmlData> packet, Core::Exception error) {
boost::lock_guard<boost::mutex> lock(mutex);
if(!packet || error) {
application->logf(Core::Logger::LOG_CRITICAL, "Host list request failed: %s", error.what());
}
else {
- const Common::XmlPacket::List *list = packet->getList("hosts");
+ const Common::XmlData::List *list = packet->getList("hosts");
daemons.clear();
if(list) {
- for(Common::XmlPacket::List::const_iterator entry = list->begin(); entry != list->end(); ++entry) {
+ for(Common::XmlData::List::const_iterator entry = list->begin(); entry != list->end(); ++entry) {
Common::HostInfo info;
info.setName(entry->get<const std::string&>("name"));
info.setIP(entry->get<const std::string&>("address"));