From 787b5884aaf873fb9fda2b0d8b7c3d54e38ae7a5 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Mon, 11 Apr 2011 18:54:18 +0200 Subject: Added a get_name() function to plugin_t, create_plugin_enumerator enumerates over plugin_t --- src/libcharon/plugins/load_tester/load_tester_plugin.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/libcharon/plugins/load_tester') diff --git a/src/libcharon/plugins/load_tester/load_tester_plugin.c b/src/libcharon/plugins/load_tester/load_tester_plugin.c index e9092e17a..c4a470f51 100644 --- a/src/libcharon/plugins/load_tester/load_tester_plugin.c +++ b/src/libcharon/plugins/load_tester/load_tester_plugin.c @@ -146,6 +146,12 @@ static job_requeue_t do_load_test(private_load_tester_plugin_t *this) return JOB_REQUEUE_NONE; } +METHOD(plugin_t, get_name, char*, + private_load_tester_plugin_t *this) +{ + return "load-tester"; +} + METHOD(plugin_t, destroy, void, private_load_tester_plugin_t *this) { @@ -189,6 +195,7 @@ plugin_t *load_tester_plugin_create() INIT(this, .public = { .plugin = { + .get_name = _get_name, .destroy = _destroy, }, }, -- cgit v1.2.3