[Kamailio-Devel] Variable access from core

Jason Penton jason.penton at smilecoms.com
Thu Mar 19 12:19:11 CET 2009


Hi *

but If I do this and try and access my global variable in mod_init of my
module - compile fails with undefined variable????
please assist

Kind regards

On Wed, Mar 18, 2009 at 3:45 PM, Iñaki Baz Castillo <ibc at aliax.net> wrote:

> 2009/3/18 Jason Penton <jason.penton at smilecoms.com>:
> > Hi *,
> >
> > What is the best practice for exposing a particular variable / ptr from
> the
> > core (e.g. sr_module.c) to any of the modules?
>
> Variables from the core are declarated in "globals.h" as "extern" (so
> they are globals). This is the case of all the core parameters.
>
>
> --
> Iñaki Baz Castillo
> <ibc at aliax.net>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/devel/attachments/20090319/558b342a/attachment.htm 


More information about the Devel mailing list