[olsr-dev] (no subject)

Abhishek Misra (spam-protected)
Mon Jul 4 13:00:43 CEST 2005


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





More information about the Olsr-dev mailing list