diff options
Diffstat (limited to 'src/modules/SystemBackendPosix')
-rw-r--r-- | src/modules/SystemBackendPosix/SystemBackendPosix.cpp | 20 | ||||
-rw-r--r-- | src/modules/SystemBackendPosix/SystemBackendPosix.h | 6 |
2 files changed, 13 insertions, 13 deletions
diff --git a/src/modules/SystemBackendPosix/SystemBackendPosix.cpp b/src/modules/SystemBackendPosix/SystemBackendPosix.cpp index 35e6c4f..4eb5807 100644 --- a/src/modules/SystemBackendPosix/SystemBackendPosix.cpp +++ b/src/modules/SystemBackendPosix/SystemBackendPosix.cpp @@ -19,7 +19,7 @@ #include "SystemBackendPosix.h" -#include <Net/ThreadManager.h> +#include <Core/ThreadManager.h> #include <stdio.h> #include <stdlib.h> @@ -29,12 +29,12 @@ namespace Modules { boost::shared_ptr<SystemBackendPosix> SystemBackendPosix::backend; -void SystemBackendPosix::getFSInfo(std::vector<Common::SystemManager::FSInfo> *fsInfo) throw(Net::Exception) { - Net::ThreadManager::get()->detach(); +void SystemBackendPosix::getFSInfo(std::vector<Common::SystemManager::FSInfo> *fsInfo) throw(Core::Exception) { + Core::ThreadManager::get()->detach(); FILE *pipe = popen("/bin/df -P -k", "r"); if(!pipe) - throw(Net::Exception(Net::Exception::NOT_AVAILABLE)); + throw(Core::Exception(Core::Exception::NOT_AVAILABLE)); char buffer[1024]; std::string output; @@ -78,18 +78,18 @@ void SystemBackendPosix::getFSInfo(std::vector<Common::SystemManager::FSInfo> *f return; } -void SystemBackendPosix::shutdown() throw(Net::Exception) { - Net::ThreadManager::get()->detach(); +void SystemBackendPosix::shutdown() throw(Core::Exception) { + Core::ThreadManager::get()->detach(); if(system("/sbin/halt") != 0) - throw(Net::Exception(Net::Exception::NOT_AVAILABLE)); + throw(Core::Exception(Core::Exception::NOT_AVAILABLE)); } -void SystemBackendPosix::reboot() throw(Net::Exception) { - Net::ThreadManager::get()->detach(); +void SystemBackendPosix::reboot() throw(Core::Exception) { + Core::ThreadManager::get()->detach(); if(system("/sbin/reboot") != 0) - throw(Net::Exception(Net::Exception::NOT_AVAILABLE)); + throw(Core::Exception(Core::Exception::NOT_AVAILABLE)); } } diff --git a/src/modules/SystemBackendPosix/SystemBackendPosix.h b/src/modules/SystemBackendPosix/SystemBackendPosix.h index e462b43..4aec7dd 100644 --- a/src/modules/SystemBackendPosix/SystemBackendPosix.h +++ b/src/modules/SystemBackendPosix/SystemBackendPosix.h @@ -38,10 +38,10 @@ class SystemBackendPosix : public Common::SystemBackend { static boost::shared_ptr<SystemBackendPosix> backend; protected: - virtual void getFSInfo(std::vector<Common::SystemManager::FSInfo> *fsInfo) throw(Net::Exception); + virtual void getFSInfo(std::vector<Common::SystemManager::FSInfo> *fsInfo) throw(Core::Exception); - virtual void shutdown() throw(Net::Exception); - virtual void reboot() throw(Net::Exception); + virtual void shutdown() throw(Core::Exception); + virtual void reboot() throw(Core::Exception); public: static void registerBackend() { |