blob: 0d8bfe09b4d6d52f2db543e28645390445239ddb [file] [log] [blame]
Patrick Williams53a360e2016-08-12 22:01:02 -05001#include "ipmid.hpp"
Patrick Venture0b02be92018-08-31 11:55:55 -07002
Chris Austenc2cd29d2016-02-05 20:02:29 -06003#include <stdint.h>
Patrick Venture0b02be92018-08-31 11:55:55 -07004#include <stdio.h>
5
6#include "host-ipmid/ipmid-api.h"
Chris Austenc2cd29d2016-02-05 20:02:29 -06007
8#define GRPEXT_GET_GROUP_CMD 0
9void register_netfn_groupext_functions() __attribute__((constructor));
10
11ipmi_ret_t ipmi_groupext(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
Patrick Venture0b02be92018-08-31 11:55:55 -070012 ipmi_request_t request, ipmi_response_t response,
13 ipmi_data_len_t data_len, ipmi_context_t context)
Chris Austenc2cd29d2016-02-05 20:02:29 -060014{
Patrick Venture0b02be92018-08-31 11:55:55 -070015 // Generic return from IPMI commands.
Chris Austenc2cd29d2016-02-05 20:02:29 -060016 ipmi_ret_t rc = IPMI_CC_OK;
Patrick Venture0b02be92018-08-31 11:55:55 -070017 uint8_t* p = (uint8_t*)response;
Chris Austenc2cd29d2016-02-05 20:02:29 -060018
Gunnar Mills8991dd62017-10-25 17:11:29 -050019 printf("IPMI GROUP EXTENSIONS\n");
Chris Austenc2cd29d2016-02-05 20:02:29 -060020
21 *data_len = 1;
22 *p = 0;
23
24 return rc;
25}
26
27void register_netfn_groupext_functions()
28{
Tom05732372016-09-06 17:21:23 +053029 // <Group Extension Command>
Patrick Venture0b02be92018-08-31 11:55:55 -070030 ipmi_register_callback(NETFUN_GRPEXT, GRPEXT_GET_GROUP_CMD, NULL,
31 ipmi_groupext, PRIVILEGE_USER);
Chris Austenc2cd29d2016-02-05 20:02:29 -060032
33 return;
34}