summaryrefslogtreecommitdiffstats
path: root/chassishandler.cpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-09-07 19:26:25 -0700
committerPatrick Venture <venture@google.com>2018-09-25 10:06:33 -0700
commit46470a38d0a3b8f29cd8efc4af8a76adcace524a (patch)
treec3e2df8b2a238889aabb14b6ba4efd76c4607364 /chassishandler.cpp
parent87651333c451cfa8090273366be5ec62bd1a9eea (diff)
downloadphosphor-host-ipmid-46470a38d0a3b8f29cd8efc4af8a76adcace524a.tar.gz
phosphor-host-ipmid-46470a38d0a3b8f29cd8efc4af8a76adcace524a.zip
rename headers to match style
Moving headers from ".h" to ".hpp" Reworked the header inclusion a bit so that host-ipmid is treated as a library, and local headers aren't. renamed apphandler.h => apphandler.hpp renamed chassishandler.h => chassishandler.hpp renamed globalhandler.h => globalhandler.hpp renamed sensorhandler.h => sensorhandler.hpp renamed storageaddsel.h => storageaddsel.hpp renamed storagehandler.h => storagehandler.hpp renamed systemintfcmds.h => systemintfcmds.hpp Change-Id: I9d4ce3dd57e2e996800f9020a10cc10cdf2c3914 Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'chassishandler.cpp')
-rw-r--r--chassishandler.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/chassishandler.cpp b/chassishandler.cpp
index bfc079d..5e86f17 100644
--- a/chassishandler.cpp
+++ b/chassishandler.cpp
@@ -1,4 +1,6 @@
-#include "chassishandler.h"
+#include "config.h"
+
+#include "chassishandler.hpp"
#include "ipmid.hpp"
#include "settings.hpp"
@@ -7,6 +9,7 @@
#include <arpa/inet.h>
#include <endian.h>
+#include <host-ipmid/ipmid-api.h>
#include <limits.h>
#include <mapper.h>
#include <netinet/in.h>
@@ -20,8 +23,6 @@
#include <fstream>
#include <future>
#include <sstream>
-
-#include "host-ipmid/ipmid-api.h"
#if __has_include(<filesystem>)
#include <filesystem>
#elif __has_include(<experimental/filesystem>)
@@ -34,7 +35,6 @@ namespace filesystem = std::experimental::filesystem;
#else
#error filesystem not available
#endif
-#include "config.h"
#include "timer.hpp"
@@ -50,6 +50,7 @@ namespace filesystem = std::experimental::filesystem;
#include <xyz/openbmc_project/Control/Power/RestorePolicy/server.hpp>
#include <xyz/openbmc_project/State/Host/server.hpp>
#include <xyz/openbmc_project/State/PowerOnHours/server.hpp>
+
// Defines
#define SET_PARM_VERSION 0x01
#define SET_PARM_BOOT_FLAGS_PERMANENT 0x40 // boot flags data1 7th bit on
OpenPOWER on IntegriCloud