diff options
author | William A. Kennington III <wak@google.com> | 2018-12-10 15:56:24 -0800 |
---|---|---|
committer | Tom Joseph <tomjoseph@in.ibm.com> | 2018-12-20 10:43:14 +0000 |
commit | 343d0611277a7506bfb4aba9be6a4028b3f80a13 (patch) | |
tree | 3c265e9c4e2e9395f9b77c8f32cd64b0ae698f38 /user_channel | |
parent | 06df8765c586d03211177efd4aa095a5418dbf91 (diff) | |
download | phosphor-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')
-rw-r--r-- | user_channel/channelcommands.cpp | 1 | ||||
-rw-r--r-- | user_channel/usercommands.cpp | 1 |
2 files changed, 2 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(); diff --git a/user_channel/usercommands.cpp b/user_channel/usercommands.cpp index 3bed8c5..d901e2c 100644 --- a/user_channel/usercommands.cpp +++ b/user_channel/usercommands.cpp @@ -493,6 +493,7 @@ ipmi_ret_t ipmiSetUserPassword(ipmi_netfn_t netfn, ipmi_cmd_t cmd, return IPMI_CC_INVALID_FIELD_REQUEST; } +void registerUserIpmiFunctions() __attribute__((constructor)); void registerUserIpmiFunctions() { ipmiUserInit(); |