libnfnetlink: mark functions as extern C

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 079ff9c9c82629115711410d52bc88b84bbc3a8e
Author: Jan Engelhardt <jengelh@xxxxxxxxxx>
Date:   Mon Jun 23 09:58:34 2008 +0200

mark functions as extern C

This is needed when #included from C++.

Reported-by: Simon <turner25@xxxxxxxxx>
Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx>
---
 include/libnfnetlink/libnfnetlink.h |    8 ++++++++
 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?], 

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux