summaryrefslogtreecommitdiffstats
path: root/user_channel/channelcommands.cpp
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2018-12-10 15:56:24 -0800
committerTom Joseph <tomjoseph@in.ibm.com>2018-12-20 10:43:14 +0000
commit343d0611277a7506bfb4aba9be6a4028b3f80a13 (patch)
tree3c265e9c4e2e9395f9b77c8f32cd64b0ae698f38 /user_channel/channelcommands.cpp
parent06df8765c586d03211177efd4aa095a5418dbf91 (diff)
downloadphosphor-host-ipmid-343d0611277a7506bfb4aba9be6a4028b3f80a13.tar.gz
phosphor-host-ipmid-343d0611277a7506bfb4aba9be6a4028b3f80a13.zip
libipmi: Decouple user commands
This makes them an optional, separate provider like the sysfs cmds. Tested: Ran on real hardware that included libusercmds.so in /usr/lib/host-ipmid and on a machine that did not include it. Ran ipmitool on the host to verify that the user commands were present when expected. Change-Id: I07b3af5ae603c3e5f1ea41f0afc309329f4e185d Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'user_channel/channelcommands.cpp')
-rw-r--r--user_channel/channelcommands.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/user_channel/channelcommands.cpp b/user_channel/channelcommands.cpp
index cf2c998..a0caeb6 100644
--- a/user_channel/channelcommands.cpp
+++ b/user_channel/channelcommands.cpp
@@ -390,6 +390,7 @@ ipmi_ret_t ipmiGetChannelInfo(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
return IPMI_CC_OK;
}
+void registerChannelFunctions() __attribute__((constructor));
void registerChannelFunctions()
{
ipmiChannelInit();
OpenPOWER on IntegriCloud