aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/plugin.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2011-04-11 18:54:18 +0200
committerMartin Willi <martin@revosec.ch>2011-04-15 10:07:12 +0200
commit787b5884aaf873fb9fda2b0d8b7c3d54e38ae7a5 (patch)
treef8c05bcf7572117763fd50eaf315a13c2e6261d2 /src/libstrongswan/plugins/plugin.h
parent6e2791715b7534b601ff5d5163d63d88ad7a8a5e (diff)
downloadstrongswan-787b5884aaf873fb9fda2b0d8b7c3d54e38ae7a5.tar.bz2
strongswan-787b5884aaf873fb9fda2b0d8b7c3d54e38ae7a5.tar.xz
Added a get_name() function to plugin_t, create_plugin_enumerator enumerates over plugin_t
Diffstat (limited to 'src/libstrongswan/plugins/plugin.h')
-rw-r--r--src/libstrongswan/plugins/plugin.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/plugin.h b/src/libstrongswan/plugins/plugin.h
index 6d8a370fb..7491160cb 100644
--- a/src/libstrongswan/plugins/plugin.h
+++ b/src/libstrongswan/plugins/plugin.h
@@ -29,6 +29,13 @@ typedef struct plugin_t plugin_t;
struct plugin_t {
/**
+ * Get the name of the plugin.
+ *
+ * @return plugin name
+ */
+ char* (*get_name)(plugin_t *this);
+
+ /**
* Destroy a plugin instance.
*/
void (*destroy)(plugin_t *this);