Recently, we're developing hardware management software for Dell 1950/2950, which bundled Dell PERC 6/i Integrated adapter. We found the program "megasasctl" was able to monitor it perfectly on our system. Because on our system OpenHPI was introduced to manage various hardware components, we hope megactl can be as a plugin for OpenHPI in order to seamlessly integrate. However, megactl only provided CLI programs, which was hardly used to develop OpenHPI plugin. Is there any other program interface available for megactl besides CLI? For example, C library?
Patch to generate C library (libmegactl.so)
After doing some investigation, I found it's quite easy to generate a C library with adding few lines (i.e., add new target to build .so) to the Makefile. More detail information please refer to the attached patch.