aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-09-25 09:59:25 +0200
committerAndreas Schneider <mail@cynapses.org>2009-09-25 09:59:25 +0200
commit3dd03fec213ac4347bb5366432b8fd4fb8a290d1 (patch)
treebb29070a7311e70d0a888b4654e74d1e62907205 /include
parente8e07f737625f1c0a2c8a1b3751e10f271507ccf (diff)
downloadlibssh-3dd03fec213ac4347bb5366432b8fd4fb8a290d1.tar.gz
libssh-3dd03fec213ac4347bb5366432b8fd4fb8a290d1.tar.xz
libssh-3dd03fec213ac4347bb5366432b8fd4fb8a290d1.zip
Add missing extern C.
Diffstat (limited to 'include')
-rw-r--r--include/libssh/callback.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/libssh/callback.h b/include/libssh/callback.h
index 00a41d3..f21b88b 100644
--- a/include/libssh/callback.h
+++ b/include/libssh/callback.h
@@ -26,8 +26,14 @@
#ifndef _SSH_CALLBACK_H
#define _SSH_CALLBACK_H
-#include "libssh.h"
#include <string.h>
+
+#include "libssh.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* @brief SSH authentication callback.
*
@@ -66,4 +72,9 @@ LIBSSH_API int ssh_options_set_log_function(ssh_options opt,
ssh_log_callback cb, void *userdata);
LIBSSH_API int ssh_options_set_status_callback(ssh_options opt, void (*callback)
(void *arg, float status), void *arg);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /*_SSH_CALLBACK_H */