summaryrefslogtreecommitdiffstats
path: root/src/modules/SystemBackendPosix/SystemBackendPosix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/SystemBackendPosix/SystemBackendPosix.cpp')
-rw-r--r--src/modules/SystemBackendPosix/SystemBackendPosix.cpp20
1 files changed, 10 insertions, 10 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));
}
}