Hi,
I trying to register my process as the Object Implementer and register my
process for the object create callback.
I have written by callback function as
static SaAisErrorT immobjcrate_callback(SaImmOiHandleT
immOiHandle,SaImmOiCcbIdT CCBid,const SaImmClassNameT class_NameT, const
SaNameT *parent *parent_Name,const SaImmAttrValuesT_2 **attr)
{
//some logic
}
in main function
SaImmOiCallbacksT imm_callbacks ={0};
imm_callbacks.saImmOiObjectCreateCallback = immobjcrate_callback;
SaAisErrorT error;
error =saImmOiInitialize_2(&immOiHandle,&imm_callbacks,&version);
this return SA_AIS_OK i.e i get the handle
But when i try to set object implementer
error = saImmOiImplementerSet(immOiHandle, implementername);
it gives error 4
i.e SA_AIS_ERR_INIT = 4, which means SA_AIS_ERR_INIT - A callback function
that is required for this API was not supplied in a previous call
saImmOiInitialize_2 function.
I do not understand where i am wrong.I am writing my code in C .
Please help me.
Regards,
Neha
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-users