Tom | 485038e | 2016-12-02 13:44:45 +0530 | [diff] [blame^] | 1 | #pragma once |
| 2 | |
| 3 | namespace provider |
| 4 | { |
| 5 | |
| 6 | /* |
| 7 | * @brief Provider Library filename extension |
| 8 | * |
| 9 | * Autotools versions the shared libraries, so the shared libraries end with |
| 10 | * extension name .so.* |
| 11 | */ |
| 12 | |
| 13 | constexpr auto PROVIDER_SONAME_EXTN = ".so."; |
| 14 | |
| 15 | /* |
| 16 | * @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 | */ |
| 25 | void registerCallbackHandlers(const char* providerLibPath); |
| 26 | |
| 27 | } // namespace provider |