[olsr-dev] (no subject)
Andreas Tønnesen
(spam-protected)
Mon Jul 4 14:04:57 CEST 2005
Check the config-file parser under src/cfgparser.
The parser allocates the plugin structs.
-Andreas
>
> Hello,
>
> I 'm finding sime more problem with plugin.
> Please go through the code below .
>
> -----------------------------------------------------------------------------
> struct olsrd_config
> {
> .......
> struct plugin_entry *plugins;
> ........
> };
>
> -----------------------------------------------------------------------------
>
> in file plugin_loader.c
>
>
> int
> olsr_load_plugins()
> {
> struct plugin_entry *entry;
> int loaded;
>
> entry = olsr_cnf->plugins;*********************************
> loaded = 0;
>
> olsr_printf(1, "Loading plugins...\n\n");
>
> while(entry)
> {
> if(olsr_load_dl(entry->name, entry->params) < 0)
> olsr_printf(1, "-- PLUGIN LOADING FAILED! --\n\n");
> else
> loaded ++;
>
> entry = entry->next;
> }
> return loaded;
> }
> ------------------------------------------------------------------------------
>
> there seems to be no piece of code which writes to the structure
>
> "olsr_cnf->plugins"
>
> which is used by the function " olsr_load_plugins() ".
>
> Please let me know how does olsr load plugins without this .
>
>
> Thank You
> Abhishek Misra
>
>
> _______________________________________________
> olsr-dev mailing list
> (spam-protected)
> https://www.olsr.org/mailman/listinfo/olsr-dev
>
---------
Andreas Tønnesen
http://www.olsr.org
More information about the Olsr-dev
mailing list