blob: ad956fcbaae5f9afd643d046d9e9f29edd0bda39 [file] [log] [blame]
Tom485038e2016-12-02 13:44:45 +05301#pragma once
2
3namespace provider
4{
5
Tom Joseph3563f8f2017-05-08 15:42:54 +05306/**
Tom485038e2016-12-02 13:44:45 +05307 * @brief Provider Library filename extension
8 *
9 * Autotools versions the shared libraries, so the shared libraries end with
10 * extension name .so.*
11 */
12
13constexpr auto PROVIDER_SONAME_EXTN = ".so.";
14
Tom Joseph3563f8f2017-05-08 15:42:54 +053015/**
Tom485038e2016-12-02 13:44:45 +053016 * @brief Register Callback handlers for IPMI provider libraries
17 *
18 * Open the directory path for net-ipmid provider libraries and scan the
19 * directory for files that end with .so.*. and dlopen the shared libraries
20 * to register the handlers for the callback routines.
21 *
22 * @param[in] providerLibPath - Directory path for reading the IPMI provider
23 * libraries
24 */
25void registerCallbackHandlers(const char* providerLibPath);
26
27} // namespace provider