[libnfnetlink] libnfnetlink: mark functions as extern C

Patrick McHardy netfilter-cvslog-bounces at lists.netfilter.org
Tue Jun 24 18:26:35 CEST 2008


Gitweb:		http://git.netfilter.org/cgi-bin/gitweb.cgi?p=libnfnetlink.git;a=commit;h=597878c9f82150a61c551cc3f32a6c68528c9fa1
commit 597878c9f82150a61c551cc3f32a6c68528c9fa1
Author:     Jan Engelhardt <jengelh at medozas.de>
AuthorDate: Tue Jun 24 18:13:25 2008 +0200
Commit:     Patrick McHardy <kaber at trash.net>
CommitDate: Tue Jun 24 18:13:25 2008 +0200

    libnfnetlink: mark functions as extern C
    
    mark functions as extern C
    
    This is needed when #included from C++.
    
    Reported-by: Simon <turner25 at gmail.com>
    Signed-off-by: Jan Engelhardt <jengelh at medozas.de>
    Signed-off-by: Patrick McHardy <kaber at trash.net>
       via  597878c9f82150a61c551cc3f32a6c68528c9fa1 (commit)
      from  6ea730b9d9d1d066c4cb028879131e26d90479d1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 597878c9f82150a61c551cc3f32a6c68528c9fa1
Author: Jan Engelhardt <jengelh at medozas.de>
Date:   Tue Jun 24 18:13:25 2008 +0200

    libnfnetlink: mark functions as extern C
    
    mark functions as extern C
    
    This is needed when #included from C++.
    
    Reported-by: Simon <turner25 at gmail.com>
    Signed-off-by: Jan Engelhardt <jengelh at medozas.de>
    Signed-off-by: Patrick McHardy <kaber at trash.net>

-----------------------------------------------------------------------

 include/libnfnetlink/libnfnetlink.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
mark functions as extern C

This is needed when #included from C++.

Reported-by: Simon <turner25 at gmail.com>
Signed-off-by: Jan Engelhardt <jengelh at medozas.de>
Signed-off-by: Patrick McHardy <kaber at trash.net>

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?], 



More information about the netfilter-cvslog mailing list