[Openais] [PATCH corosync/trunk] add a log_printf function to coroipcs so we can pass log level

angus salkeld angus.salkeld at alliedtelesis.co.nz
Sun Oct 18 11:16:40 PDT 2009


On Thu, 2009-10-15 at 21:28 -0700, Steven Dake wrote:
> On Fri, 2009-10-16 at 14:25 +1300, angus salkeld wrote:
> > On Thu, 2009-10-15 at 15:32 -0700, Steven Dake wrote:
> > > Angus,
> > > 
> > > What I would like to see are two apis:
> > > 
> > > one takes coroipcs_init_state.  The other API takes a
> > > coroipcs_init_state_v2.  All apis in state are also members of state_v2.
> > > 
> > > Inside coroipcs, then the user would call things like
> > > 
> > > api->malloc
> > > api->log_printf
> > > api->stats_increment_value
> > > 
> > > the internal api would be loaded based upon whatever init function was
> > > called.
> > > 
> > > Regards
> > > -steve
> > Hopefully this will make everyone happy.
> > 
> > In main.c you can load the version 1 api by defining the following:
> > /* #define USE_IPC_API_V1 1 */
> > 
> 
> nuke this part about the define and the patch is good to go.
> 
Committed as revision 2530.

Angus

> Also tabs are not aligned.
> 
> Regards
> -steve




More information about the Openais mailing list