summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlon Bar-Lev <alon.barlev@gmail.com>2012-04-07 20:40:40 +0300
committerDavid Sommerseth <davids@redhat.com>2012-04-26 20:17:32 +0200
commit13663f206dbd036add82b1fef7d51074c80de3c9 (patch)
treeeec24af1175cc030ca0870ae635c1a6896df086d /include
parent88f3a4026c48e92bf3ce18d7611b7b88f7bed0be (diff)
downloadopenvpn-13663f206dbd036add82b1fef7d51074c80de3c9.tar.gz
openvpn-13663f206dbd036add82b1fef7d51074c80de3c9.tar.xz
openvpn-13663f206dbd036add82b1fef7d51074c80de3c9.zip
cleanup: plugin: support C++ plugin
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>
Diffstat (limited to 'include')
-rw-r--r--include/openvpn-plugin.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/openvpn-plugin.h b/include/openvpn-plugin.h
index f82f61f..1c80eec 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_ */