git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d3322f
)
Make the functional usable with c++
author
Daniel Kouřil
<kouril@ics.muni.cz>
Thu, 12 Jan 2012 08:16:24 +0000
(08:16 +0000)
committer
Daniel Kouřil
<kouril@ics.muni.cz>
Thu, 12 Jan 2012 08:16:24 +0000
(08:16 +0000)
emi.canl.canl-c/src/canl.h
patch
|
blob
|
blame
|
history
diff --git
a/emi.canl.canl-c/src/canl.h
b/emi.canl.canl-c/src/canl.h
index
2f7714c
..
8ef6d2a
100644
(file)
--- a/
emi.canl.canl-c/src/canl.h
+++ b/
emi.canl.canl-c/src/canl.h
@@
-3,6
+3,10
@@
#include <sys/time.h>
#include <sys/socket.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <canl_err.h>
typedef void *canl_io_handler;
@@
-41,4
+45,9
@@
int canl_set_ctx_own_cert(canl_ctx cc, canl_x509 cert,
canl_stack_of_x509 chain, canl_pkey key);
int canl_set_ctx_own_cert_file(canl_ctx cc, char *cert, char *key,
canl_password_callback cb, void *userdata);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif