Hi Corey,
I am invoking the OpenIPMI routines by linking the libOpenIPMI.a to my C++ code.
I have kept the calling code "extern "C"" logic. Do you know whether I need to 
anything
Else to link the OpenIPMI libraries to my c++ code.

Somehow the function I register to "ipmi_open_domain" never got invoked and I 
am stuck there.
Please let me know whether I need to anything else in my daemon.

os_handler_t   *osfns;
int
sentbl_init (os_handler_t *os)
{
    int rv;

    assert(os && !sentbl.st_inited);

    DEBUG_MSG_ENABLE();
    ipmi_init(os);

    rv = ipmi_smi_setup_con(0, os, NULL, &sentbl.st_ipmi_con);
    if (rv) {
        ipmi_shutdown();
        return -1;
    }
    rv = ipmi_open_domain("", &sentbl.st_ipmi_con, 1,
                ipmicb_setup_done, NULL, NULL, NULL, NULL, 0, NULL);  
-->ipmicb_setup_done never invoked
    if (rv) {
        ipmi_shutdown();
        return -1;
    }
    sentbl.st_inited = TRUE;

    return 0;
}

Main()
{

   //IPMI handler
   osfns = ipmi_posix_setup_os_handler();
   if (!osfns) {

   }


While(1) {
................

      if (osfns) {
          osfns->perform_one_op(osfns, tvp);
      }

}

Please let me know if I need to add anything else to this code.

Thanks,
Rishi

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
Openipmi-developer mailing list
Openipmi-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Reply via email to