diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2011-01-06 23:24:52 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2011-03-25 09:38:48 +0100 |
commit | dc299b6e7d0413d0a311c33ffb14591b5c8d1d96 (patch) | |
tree | d669e2c6714c7371b2c46f67a1b3ba89306407f6 /plugin/examples | |
parent | Added a simple plug-in demonstrating the v3 plug-in API. (diff) | |
download | openvpn-dc299b6e7d0413d0a311c33ffb14591b5c8d1d96.tar.xz |
Separate the general plug-in version constant and v3 plug-in structs version
After a review of the second round of the the v3 plug-in implementation, it
was decided to use a separate constant defining the version of the structs
used for argument and return value passing, instead of OPENVPN_PLUGIN_VERSION.
To not make it too complex, this patch uses a shared version constant for all
the v3 structures. It is not expected that these strucutures will change too
much and too often.
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Acked-by: James Yonan <james@openvpn.net>
Diffstat (limited to 'plugin/examples')
-rw-r--r-- | plugin/examples/log_v3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/examples/log_v3.c b/plugin/examples/log_v3.c index 4974ef2..bf2f1dc 100644 --- a/plugin/examples/log_v3.c +++ b/plugin/examples/log_v3.c @@ -72,14 +72,14 @@ get_env (const char *name, const char *envp[]) } OPENVPN_EXPORT int -openvpn_plugin_open_v3 (const int apiver, +openvpn_plugin_open_v3 (const int v3structver, struct openvpn_plugin_args_open_in const *args, struct openvpn_plugin_args_open_return *ret) { struct plugin_context *context = NULL; /* Check that we are API compatible */ - if( apiver != OPENVPN_PLUGIN_VERSION ) { + if( v3structver != OPENVPN_PLUGINv3_STRUCTVER ) { return OPENVPN_PLUGIN_FUNC_ERROR; } |