author | Sebastian Harl <sh@tokkee.org> | |
Mon, 21 Apr 2014 17:30:31 +0000 (19:30 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Mon, 21 Apr 2014 17:30:31 +0000 (19:30 +0200) | ||
commit | 851c33e513e67986fa3efa68400564b457d69d17 | |
tree | 77ee51143ffe707890f19a45ab5ed67e373c1477 | tree | snapshot |
parent | ed920688e7cdc9fd497044379c8d14da0dfaebeb | commit | diff |
plugin: Added support for reconfiguring the system on the fly.
Reconfiguring all plugins happens in multiple steps:
First, call sdb_plugin_reconfigure_init() to deconfigure all plugins by
calling their config callbacks with a NULL config tree and unregistering all
registered callbacks.
Then, sdb_plugin_configure() and other functions may be used to provide the
new configuration or load new plugins. For all plugins which were already
loaded before, sdb_module_init() will be called with a NULL argument when
reloading them.
Finally, sdb_plugin_reconfigure_finish() will clean up leftover pieces, like
unloading plugins which are no longer in use.
Reconfiguring all plugins happens in multiple steps:
First, call sdb_plugin_reconfigure_init() to deconfigure all plugins by
calling their config callbacks with a NULL config tree and unregistering all
registered callbacks.
Then, sdb_plugin_configure() and other functions may be used to provide the
new configuration or load new plugins. For all plugins which were already
loaded before, sdb_module_init() will be called with a NULL argument when
reloading them.
Finally, sdb_plugin_reconfigure_finish() will clean up leftover pieces, like
unloading plugins which are no longer in use.
src/core/plugin.c | diff | blob | history | |
src/include/core/plugin.h | diff | blob | history |