[olsr-dev] olsr_plugin_exit()

Andreas T√łnnesen (spam-protected)
Tue Jan 18 12:35:34 CET 2005


olsr_plugin_exit is called when the plugin is closed prior to olsrd
shutting down. DLLs has a constructor and a destructor. The destructor is
registered(using gcc) by:
void __attribute__ ((destructor))
my_fini(void);

then one can see that in my_fini olsr_plugin_exit is called. This is just
to  make the examples "modular" so that one has to do only minimal changed
in olsrd_plugin.c, ofcause one can do clueanup stuff directly in my_fini
or call other functions.
So yes, this function is ment to do cleanup before exit.

- Andreas


---------
Andreas T√łnnesen
http://www.olsr.org



More information about the Olsr-dev mailing list