]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
cleanup: plugin: support C++ plugin
authorAlon Bar-Lev <alon.barlev@gmail.com>
Sat, 7 Apr 2012 17:40:40 +0000 (20:40 +0300)
committerDavid Sommerseth <davids@redhat.com>
Thu, 26 Apr 2012 18:17:32 +0000 (20:17 +0200)
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Acked-by: Fabian Knittel <fabian.knittel@lettink.de>
Acked-by: David Sommerseth <davids@redhat.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
include/openvpn-plugin.h

index f82f61fafafd3133a2ae0723da7bdf59d782cc22..1c80eec36362e68e76bace678f053cabf0fb6bf1 100644 (file)
@@ -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_ */