From: Alon Bar-Lev Date: Sat, 7 Apr 2012 17:40:40 +0000 (+0300) Subject: cleanup: plugin: support C++ plugin X-Git-Tag: v2.3_alpha2~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13663f206dbd036add82b1fef7d51074c80de3c9;p=thirdparty%2Fopenvpn.git cleanup: plugin: support C++ plugin Signed-off-by: Alon Bar-Lev Acked-by: Fabian Knittel Acked-by: David Sommerseth Signed-off-by: David Sommerseth --- diff --git a/include/openvpn-plugin.h b/include/openvpn-plugin.h index f82f61faf..1c80eec36 100644 --- a/include/openvpn-plugin.h +++ b/include/openvpn-plugin.h @@ -43,6 +43,10 @@ typedef X509 openvpn_x509_cert_t; #endif #endif +#ifdef __cplusplus +extern "C" { +#endif + /* * Plug-in types. These types correspond to the set of script callbacks * supported by OpenVPN. @@ -724,4 +728,8 @@ OPENVPN_PLUGIN_DEF openvpn_plugin_handle_t OPENVPN_PLUGIN_FUNC(openvpn_plugin_op OPENVPN_PLUGIN_DEF int OPENVPN_PLUGIN_FUNC(openvpn_plugin_func_v1) (openvpn_plugin_handle_t handle, const int type, const char *argv[], const char *envp[]); +#ifdef __cplusplus +} +#endif + #endif /* OPENVPN_PLUGIN_H_ */