[olsr-dev] plugin_loader.c

Abhishek Misra (spam-protected)
Mon Jul 4 08:10:46 CEST 2005


Hello,

 Please go through this code in plugin_loader.c 

----------------------------------------------------------------------------
if((new_entry.register_olsr_data = dlsym(new_entry.dlhandle,
"register_olsr_data")) == NULL)
    {
      olsr_printf(1, "\nCould not find function registration function in
plugin!\n", dlerror());
      dlclose(new_entry.dlhandle);
      return -1;
    }
----------------------------------------------------------------------------


I'm not able to understand how is this register_olsr_data" being used.
Is it that the plugin we define has to contain a function by this name?

The eg. plugin for power however does not contain any such function .


Thank You
Abhishek Misra





 



More information about the Olsr-dev mailing list