Where can I find the definition of the function: static_proto_init ?

Mark Doliner mark at kingant.net
Sun Aug 12 12:54:58 EDT 2007


I think it's only used if you've told configure to build some plugins
statically.  Normally they're built as dynamically loadable modules which are
then loaded at run-time by plugin.c

-Mark

On Sun, 12 Aug 2007 17:13:17 +0800, Wade Yin wrote
> hi Mark,
> 
>   yes I can find the following definition in file pidgin-2.x.x/config.h:
> 
> #define STATIC_PROTO_INIT static void static_proto_init() {  }
> 
> and the function calling path:  pidgin_main() ->  purple_core_init() 
> -> static_proto_init()
> 
> but it looks that the function did nothing! ??
> 
> On 8/12/07, Mark Doliner <mark at kingant.net> wrote:
> >
> > On Thu, 9 Aug 2007 17:17:38 +0800, Wade Yin wrote
> > >    I just want to figure out when the protocol handler been
> > > registred, such as msn_login().
> > >
> > >     Is it in purple_core_init() -> static_proto_init()?  But I can
> > > find the function body in source.
> > >
> > >   Any suggestion?
> >
> > I believe static_proto_init is constructed by configure.ac/configure and
> > inserted into the top level config.h, which is then used in core.c just
> > above
> > purple_core_init().




More information about the Devel mailing list