From: Tobias Brunner Date: Sat, 8 Jun 2013 08:29:09 +0000 (+0200) Subject: smp: Use plugin features X-Git-Tag: 5.1.0dr1~128^2~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1f5841bb2de38aa0961eb8871967a3230fff07b;p=thirdparty%2Fstrongswan.git smp: Use plugin features --- diff --git a/src/libcharon/plugins/smp/smp.c b/src/libcharon/plugins/smp/smp.c index db52952309..ad5029d1c4 100644 --- a/src/libcharon/plugins/smp/smp.c +++ b/src/libcharon/plugins/smp/smp.c @@ -712,6 +712,17 @@ METHOD(plugin_t, get_name, char*, return "smp"; } +METHOD(plugin_t, get_features, int, + private_smp_t *this, plugin_feature_t *features[]) +{ + static plugin_feature_t f[] = { + PLUGIN_NOOP, + PLUGIN_PROVIDE(CUSTOM, "smp"), + }; + *features = f; + return countof(f); +} + METHOD(plugin_t, destroy, void, private_smp_t *this) { @@ -732,7 +743,7 @@ plugin_t *smp_plugin_create() .public = { .plugin = { .get_name = _get_name, - .reload = (void*)return_false, + .get_features = _get_features, .destroy = _destroy, }, }, @@ -777,4 +788,3 @@ plugin_t *smp_plugin_create() return &this->public.plugin; } -