summaryrefslogtreecommitdiffstats
path: root/groupext.cpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2016-08-08 15:26:29 -0500
committerMatthew Barth <msbarth@us.ibm.com>2016-08-08 15:42:28 -0500
commit98a238406ff5765cc6db3e61ba787c27144dad1d (patch)
treeea2e16068905deb631bebfeb7b5cca1392318506 /groupext.cpp
parent9a61b4f4e9213608653852ba2388fa89663029c3 (diff)
downloadphosphor-host-ipmid-98a238406ff5765cc6db3e61ba787c27144dad1d.tar.gz
phosphor-host-ipmid-98a238406ff5765cc6db3e61ba787c27144dad1d.zip
Switch C++ source files to .cpp extension
Change-Id: I495186b4afd58ec1e5d9d5c6472394f96541d17d Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'groupext.cpp')
-rw-r--r--groupext.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/groupext.cpp b/groupext.cpp
new file mode 100644
index 0000000..b834f9b
--- /dev/null
+++ b/groupext.cpp
@@ -0,0 +1,31 @@
+#include "ipmid-api.h"
+#include "ipmid.H"
+#include <stdio.h>
+#include <stdint.h>
+
+#define GRPEXT_GET_GROUP_CMD 0
+void register_netfn_groupext_functions() __attribute__((constructor));
+
+ipmi_ret_t ipmi_groupext(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
+ ipmi_request_t request, ipmi_response_t response,
+ ipmi_data_len_t data_len, ipmi_context_t context)
+{
+ // Generic return from IPMI commands.
+ ipmi_ret_t rc = IPMI_CC_OK;
+ uint8_t *p = (uint8_t*) response;
+
+ printf("IPMI GROUP EXTENTIONS\n");
+
+ *data_len = 1;
+ *p = 0;
+
+ return rc;
+}
+
+void register_netfn_groupext_functions()
+{
+ printf("Registering NetFn:[0x%X], Cmd:[0x%X]\n",NETFUN_GRPEXT, GRPEXT_GET_GROUP_CMD);
+ ipmi_register_callback(NETFUN_GRPEXT, GRPEXT_GET_GROUP_CMD, NULL, ipmi_groupext);
+
+ return;
+}
OpenPOWER on IntegriCloud