aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-06-08 10:29:09 +0200
committerTobias Brunner <tobias@strongswan.org>2013-06-11 11:18:19 +0200
commitc1f5841bb2de38aa0961eb8871967a3230fff07b (patch)
tree1eb696aa06b49caac3adc5f547dc69cabea93ab9 /src
parent64b0c2575f3b1ee47c709ff37fbae9f4e9429230 (diff)
downloadstrongswan-c1f5841bb2de38aa0961eb8871967a3230fff07b.tar.bz2
strongswan-c1f5841bb2de38aa0961eb8871967a3230fff07b.tar.xz
smp: Use plugin features
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/plugins/smp/smp.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/libcharon/plugins/smp/smp.c b/src/libcharon/plugins/smp/smp.c
index db5295230..ad5029d1c 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;
}
-