You need all (most) of the OI callbacks. Please read the IMM spec a bit more 
carefully and make sure you understand the semantics of the callbacks.
You can also look at the various OIs inside the opensaf code base.
/Hans

> -----Original Message-----
> From: Pawar Neha [mailto:[email protected]]
> Sent: den 12 november 2013 07:17
> To: [email protected]
> Subject: [users] error - saImmOiImplementerSet FAILED : 4
> 
> 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

------------------------------------------------------------------------------
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

Reply via email to