aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/android_log/android_log_plugin.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-06-08 11:05:02 +0200
committerTobias Brunner <tobias@strongswan.org>2013-06-11 11:18:19 +0200
commitfacc7815004db80cb8fb386f100ab6076f24fda0 (patch)
treefc62892200c84f75c7dee5aa6c245faed16bef92 /src/libcharon/plugins/android_log/android_log_plugin.c
parentdf60999b5f9681920cb5b05543e7cae472c817df (diff)
downloadstrongswan-facc7815004db80cb8fb386f100ab6076f24fda0.tar.bz2
strongswan-facc7815004db80cb8fb386f100ab6076f24fda0.tar.xz
android-log: Use plugin features
Diffstat (limited to 'src/libcharon/plugins/android_log/android_log_plugin.c')
-rw-r--r--src/libcharon/plugins/android_log/android_log_plugin.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/libcharon/plugins/android_log/android_log_plugin.c b/src/libcharon/plugins/android_log/android_log_plugin.c
index 6757c2210..515917a22 100644
--- a/src/libcharon/plugins/android_log/android_log_plugin.c
+++ b/src/libcharon/plugins/android_log/android_log_plugin.c
@@ -43,6 +43,17 @@ METHOD(plugin_t, get_name, char*,
return "android-log";
}
+METHOD(plugin_t, get_features, int,
+ private_android_log_plugin_t *this, plugin_feature_t *features[])
+{
+ static plugin_feature_t f[] = {
+ PLUGIN_NOOP,
+ PLUGIN_PROVIDE(CUSTOM, "android-log"),
+ };
+ *features = f;
+ return countof(f);
+}
+
METHOD(plugin_t, destroy, void,
private_android_log_plugin_t *this)
{
@@ -62,7 +73,7 @@ plugin_t *android_log_plugin_create()
.public = {
.plugin = {
.get_name = _get_name,
- .reload = (void*)return_false,
+ .get_features = _get_features,
.destroy = _destroy,
},
},
@@ -73,4 +84,3 @@ plugin_t *android_log_plugin_create()
return &this->public.plugin;
}
-