summaryrefslogtreecommitdiffstats
path: root/include/libnetfilter_cttimeout
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2012-02-29 08:12:13 +0100
committerJan Engelhardt <jengelh@medozas.de>2012-02-29 08:12:13 +0100
commit587bc0a2430155fa5b69d265eb29d06cb93d31c1 (patch)
tree8c47d68ecdd2cde4c44322db9b3c281e88e74a4e /include/libnetfilter_cttimeout
parentad969d490a7c987c48a708e6a7bef0db30f68fb9 (diff)
Add extern "C" guard for C++ compilation mode
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'include/libnetfilter_cttimeout')
-rw-r--r--include/libnetfilter_cttimeout/libnetfilter_cttimeout.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libnetfilter_cttimeout/libnetfilter_cttimeout.h b/include/libnetfilter_cttimeout/libnetfilter_cttimeout.h
index 172e7f9..5a548fa 100644
--- a/include/libnetfilter_cttimeout/libnetfilter_cttimeout.h
+++ b/include/libnetfilter_cttimeout/libnetfilter_cttimeout.h
@@ -5,6 +5,10 @@
#include <sys/types.h>
#include <linux/netfilter/nfnetlink_conntrack.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct nfct_timeout;
struct nfct_timeout *nfct_timeout_alloc(void);
@@ -104,4 +108,8 @@ int nfct_timeout_nlmsg_parse_payload(const struct nlmsghdr *nlh, struct nfct_tim
int nfct_timeout_snprintf(char *buf, size_t size, const struct nfct_timeout *, unsigned int flags);
+#ifdef __cplusplus
+} /* extern "C" */
#endif
+
+#endif /* _LIBNETFILTER_CTTIMEOUT_H_ */