summaryrefslogtreecommitdiffstats
path: root/include/libnetfilter_acct/libnetfilter_acct.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-06-07 15:01:04 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-06-07 15:01:04 +0200
commitd7458a7415657de9f97b2bb76ef3d5d65bea78ca (patch)
treee174a68044d4f6529745b79b2a7ecb253cbf2d58 /include/libnetfilter_acct/libnetfilter_acct.h
parent703c1861c1c487f7bfc210f9f7a43cfca988035f (diff)
include: use C++ headers in C++ mode
Reported-by: Thomas Jarosch <thomas.jarosch@intra2net.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnetfilter_acct/libnetfilter_acct.h')
-rw-r--r--include/libnetfilter_acct/libnetfilter_acct.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/libnetfilter_acct/libnetfilter_acct.h b/include/libnetfilter_acct/libnetfilter_acct.h
index 18f90c4..421e15a 100644
--- a/include/libnetfilter_acct/libnetfilter_acct.h
+++ b/include/libnetfilter_acct/libnetfilter_acct.h
@@ -1,10 +1,15 @@
#ifndef _LIBNETFILTER_ACCT_H_
#define _LIBNETFILTER_ACCT_H_
-#include <sys/types.h>
#include <stdint.h>
#include <linux/netfilter/nfnetlink_acct.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <sys/types.h>
+
struct nfacct;
enum nfacct_attr_type {
@@ -39,4 +44,8 @@ int nfacct_nlmsg_parse_payload(const struct nlmsghdr *nlh, struct nfacct *nfacct
int nfacct_snprintf(char *buf, size_t size, struct nfacct *nfacct, uint16_t type, uint16_t flags);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif