summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2008-06-24 18:13:25 +0200
committerPatrick McHardy <kaber@trash.net>2008-06-24 18:13:25 +0200
commit597878c9f82150a61c551cc3f32a6c68528c9fa1 (patch)
treef27b6f97b6e4d7ca29a1c4dee2e368edb279e092
parent6ea730b9d9d1d066c4cb028879131e26d90479d1 (diff)
libnfnetlink: mark functions as extern C
mark functions as extern C This is needed when #included from C++. Reported-by: Simon <turner25@gmail.com> Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Patrick McHardy <kaber@trash.net>
-rw-r--r--include/libnfnetlink/libnfnetlink.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libnfnetlink/libnfnetlink.h b/include/libnfnetlink/libnfnetlink.h
index 3c64aac..83874e3 100644
--- a/include/libnfnetlink/libnfnetlink.h
+++ b/include/libnfnetlink/libnfnetlink.h
@@ -31,6 +31,10 @@
#define NFNL_BUFFSIZE 8192
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct nfnlhdr {
struct nlmsghdr nlh;
struct nfgenmsg nfmsg;
@@ -202,6 +206,10 @@ int nlif_index2name(struct nlif_handle *nlif_handle,
unsigned int if_index,
char *name);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
/* Pablo: What is the equivalence of be64_to_cpu in userspace?
*
* Harald: Good question. I don't think there's a standard way [yet?],