[sr-dev] question about module function arguments

Andrei Pelinescu-Onciul andrei at iptel.org
Wed Oct 13 16:52:49 CEST 2010


On Oct 13, 2010 at 17:47, Juha Heinanen <jh at tutpro.com> wrote:
> Andrei Pelinescu-Onciul writes:
> 
> > You should add it to the Makefile, e.g.:
> > include ../../Makefile.defs
> > 
> > auto_gen=
> > NAME=foo.so
> > LIBS=
> > DEFS+= -DSER_MOD_INTERFACE
> > 
> > include ../../Makefile.modules
> 
> how does the above work, it KAMAILIO_MOD_INTERFACE is defined by
> default?  should it be first somehow undefined, because it is tested
> first in sr_module.h?

It's not defined by default. If you look at all the kamailio modules,
they have DEFS+= -DKAMAILIO_MOD_INTERFACE (this is one of the things the
porting scripts did automatically).

Andrei



More information about the sr-dev mailing list