From 53a360e6793ca4fd679fd527ff8ea4e240bb77d9 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Fri, 12 Aug 2016 22:01:02 -0500 Subject: ipmid: Change .H -> .hpp Change-Id: Ia1ed05a533736105909717b86f16274b30d36401 Signed-off-by: Patrick Williams --- apphandler.cpp | 8 ++++---- groupext.cpp | 2 +- ipmid.H | 27 --------------------------- ipmid.cpp | 2 +- ipmid.hpp | 27 +++++++++++++++++++++++++++ ipmisensor.cpp | 2 +- storageaddsel.cpp | 2 +- transporthandler.cpp | 2 +- 8 files changed, 36 insertions(+), 36 deletions(-) delete mode 100644 ipmid.H create mode 100644 ipmid.hpp diff --git a/apphandler.cpp b/apphandler.cpp index 4a77cfa..bfc821e 100644 --- a/apphandler.cpp +++ b/apphandler.cpp @@ -1,6 +1,6 @@ #include "apphandler.h" #include "ipmid-api.h" -#include "ipmid.H" +#include "ipmid.hpp" #include #include #include @@ -26,7 +26,7 @@ typedef struct }__attribute__((packed)) ipmi_device_id_t; //--------------------------------------------------------------------- -// Called by Host on seeing a SMS_ATN bit set. Return a hardcoded +// Called by Host on seeing a SMS_ATN bit set. Return a hardcoded // value of 0x2 indicating we need Host read some data. //------------------------------------------------------------------- ipmi_ret_t ipmi_app_get_msg_flags(ipmi_netfn_t netfn, ipmi_cmd_t cmd, @@ -39,8 +39,8 @@ ipmi_ret_t ipmi_app_get_msg_flags(ipmi_netfn_t netfn, ipmi_cmd_t cmd, printf("IPMI APP GET MSG FLAGS returning with [bit:2] set\n"); // From IPMI spec V2.0 for Get Message Flags Command : - // bit:[1] from LSB : 1b = Event Message Buffer Full. - // Return as 0 if Event Message Buffer is not supported, + // bit:[1] from LSB : 1b = Event Message Buffer Full. + // Return as 0 if Event Message Buffer is not supported, // or when the Event Message buffer is disabled. // TODO. For now. assume its not disabled and send "0x2" anyway: diff --git a/groupext.cpp b/groupext.cpp index b834f9b..92edd04 100644 --- a/groupext.cpp +++ b/groupext.cpp @@ -1,5 +1,5 @@ #include "ipmid-api.h" -#include "ipmid.H" +#include "ipmid.hpp" #include #include diff --git a/ipmid.H b/ipmid.H deleted file mode 100644 index f465072..0000000 --- a/ipmid.H +++ /dev/null @@ -1,27 +0,0 @@ -#ifndef __HOST_IPMID_IPMI_H__ -#define __HOST_IPMID_IPMI_H__ -#include "ipmid-api.h" -#include -#include "host-services.h" - -// When the requester sends in a netfn and a command along with data, this -// function will look for registered handlers that will handle that [netfn,cmd] -// and will make a call to that plugin implementation and send back the response. -ipmi_ret_t ipmi_netfn_router(const ipmi_netfn_t, const ipmi_cmd_t, ipmi_request_t, - ipmi_response_t, unsigned int *data_len); - -// Plugin libraries need to _end_ with .so -#define IPMI_PLUGIN_EXTN ".so" -// Plugin libraries can be versioned with suffix .so.* -#define IPMI_PLUGIN_SONAME_EXTN ".so." - -// The BT FIFO in the AST2400 can only handle 64 bytes. -// Can only allow 63 because the BT interface still -// needs 1 byte for the length field. -#define MAX_IPMI_BUFFER 64 - -extern FILE *ipmiio, *ipmidbus, *ipmicmddetails; - -int set_sensor_dbus_state_s(uint8_t , const char *, const char *); -int set_sensor_dbus_state_y(uint8_t , const char *, const uint8_t); -#endif diff --git a/ipmid.cpp b/ipmid.cpp index c9c7dda..2689117 100644 --- a/ipmid.cpp +++ b/ipmid.cpp @@ -8,7 +8,7 @@ #include #include #include -#include "ipmid.H" +#include "ipmid.hpp" #include #include #include diff --git a/ipmid.hpp b/ipmid.hpp new file mode 100644 index 0000000..f465072 --- /dev/null +++ b/ipmid.hpp @@ -0,0 +1,27 @@ +#ifndef __HOST_IPMID_IPMI_H__ +#define __HOST_IPMID_IPMI_H__ +#include "ipmid-api.h" +#include +#include "host-services.h" + +// When the requester sends in a netfn and a command along with data, this +// function will look for registered handlers that will handle that [netfn,cmd] +// and will make a call to that plugin implementation and send back the response. +ipmi_ret_t ipmi_netfn_router(const ipmi_netfn_t, const ipmi_cmd_t, ipmi_request_t, + ipmi_response_t, unsigned int *data_len); + +// Plugin libraries need to _end_ with .so +#define IPMI_PLUGIN_EXTN ".so" +// Plugin libraries can be versioned with suffix .so.* +#define IPMI_PLUGIN_SONAME_EXTN ".so." + +// The BT FIFO in the AST2400 can only handle 64 bytes. +// Can only allow 63 because the BT interface still +// needs 1 byte for the length field. +#define MAX_IPMI_BUFFER 64 + +extern FILE *ipmiio, *ipmidbus, *ipmicmddetails; + +int set_sensor_dbus_state_s(uint8_t , const char *, const char *); +int set_sensor_dbus_state_y(uint8_t , const char *, const uint8_t); +#endif diff --git a/ipmisensor.cpp b/ipmisensor.cpp index b6927ac..3e67b41 100644 --- a/ipmisensor.cpp +++ b/ipmisensor.cpp @@ -2,7 +2,7 @@ #include #include #include -#include +#include #include "sensorhandler.h" extern uint8_t find_sensor(uint8_t); diff --git a/storageaddsel.cpp b/storageaddsel.cpp index 9d15a49..165e9d5 100644 --- a/storageaddsel.cpp +++ b/storageaddsel.cpp @@ -8,7 +8,7 @@ #include #include #include -#include "ipmid.H" +#include "ipmid.hpp" #include "storagehandler.h" #include "sensorhandler.h" diff --git a/transporthandler.cpp b/transporthandler.cpp index 5bb5355..0739d06 100644 --- a/transporthandler.cpp +++ b/transporthandler.cpp @@ -5,7 +5,7 @@ #include #include "ipmid-api.h" -#include "ipmid.H" +#include "ipmid.hpp" #include "transporthandler.h" #define SYSTEMD_NETWORKD_DBUS 1 -- cgit v1.2.1