[sr-dev] method mask for xlog

Juha Heinanen jh at tutpro.com
Sun Jul 18 15:42:00 CEST 2010


Daniel-Constantin Mierla writes:

> $rm should return method type as integer when used in integer 
> operations. This together with a shared variable (e.g., $shv(x) -- they 
> can be changed at runtime via mi/rpc) and bitwise 'and' can be used to 
> achieve what you want in your config.

without if statements?

> Introducing the check inside the module will make the 'if' to be 
> executed for each xlog function. Personally I would prefer to avoid 
> introducing in the code all kind of filtering conditions, especially if 
> they are not very common.

no problem. i can make a private version of xlog module that includes
this one extra c if statement.

-- juha



More information about the sr-dev mailing list