blob: 1166a3eb49f32b7a8c8ccf1f08a0257733e9345f [file] [log] [blame]
Patrick Williams37af7332016-09-02 21:21:42 -05001#include "host-ipmid/ipmid-api.h"
Patrick Williams53a360e2016-08-12 22:01:02 -05002#include "ipmid.hpp"
Chris Austenc2cd29d2016-02-05 20:02:29 -06003#include <stdio.h>
4#include <stdint.h>
5
6#define GRPEXT_GET_GROUP_CMD 0
7void register_netfn_groupext_functions() __attribute__((constructor));
8
9ipmi_ret_t ipmi_groupext(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
10 ipmi_request_t request, ipmi_response_t response,
11 ipmi_data_len_t data_len, ipmi_context_t context)
12{
13 // Generic return from IPMI commands.
14 ipmi_ret_t rc = IPMI_CC_OK;
15 uint8_t *p = (uint8_t*) response;
16
Gunnar Mills8991dd62017-10-25 17:11:29 -050017 printf("IPMI GROUP EXTENSIONS\n");
Chris Austenc2cd29d2016-02-05 20:02:29 -060018
19 *data_len = 1;
20 *p = 0;
21
22 return rc;
23}
24
25void register_netfn_groupext_functions()
26{
Tom05732372016-09-06 17:21:23 +053027 // <Group Extension Command>
Tom05732372016-09-06 17:21:23 +053028 ipmi_register_callback(NETFUN_GRPEXT, GRPEXT_GET_GROUP_CMD, NULL, ipmi_groupext,
29 PRIVILEGE_USER);
Chris Austenc2cd29d2016-02-05 20:02:29 -060030
31 return;
32}