diff options
author | Martin Willi <martin@revosec.ch> | 2011-04-15 09:48:17 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2011-04-15 10:07:13 +0200 |
commit | 96409be3201317d4eeeba5e2549b9543c48358ad (patch) | |
tree | 0d654dba32dc6bb9fe1b9efcdaf1cd8f12468c94 /src/libhydra/plugins/attr/attr_plugin.c | |
parent | 00b4b4b0d1a5b40563dda5c46cb31bd28641e0e1 (diff) | |
download | strongswan-96409be3201317d4eeeba5e2549b9543c48358ad.tar.bz2 strongswan-96409be3201317d4eeeba5e2549b9543c48358ad.tar.xz |
Add reload support to attr plugin
Diffstat (limited to 'src/libhydra/plugins/attr/attr_plugin.c')
-rw-r--r-- | src/libhydra/plugins/attr/attr_plugin.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libhydra/plugins/attr/attr_plugin.c b/src/libhydra/plugins/attr/attr_plugin.c index 095bfb886..cb14495af 100644 --- a/src/libhydra/plugins/attr/attr_plugin.c +++ b/src/libhydra/plugins/attr/attr_plugin.c @@ -42,6 +42,13 @@ METHOD(plugin_t, get_name, char*, return "attr"; } +METHOD(plugin_t, reload, bool, + private_attr_plugin_t *this) +{ + this->provider->reload(this->provider); + return TRUE; +} + METHOD(plugin_t, destroy, void, private_attr_plugin_t *this) { @@ -61,7 +68,7 @@ plugin_t *attr_plugin_create() .public = { .plugin = { .get_name = _get_name, - .reload = (void*)return_false, + .reload = _reload, .destroy = _destroy, }, }, |