summaryrefslogtreecommitdiffstats
path: root/include/libnetfilter_log/libnetfilter_log.h
diff options
context:
space:
mode:
authorJeremy Sowden <jeremy@azazel.net>2019-07-03 12:25:38 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2019-07-03 13:33:40 +0200
commitccfec26dd1a7c404257e13770aeab1007a2212c9 (patch)
tree3b552a101c42fc591499236c7a659288763e3c2e /include/libnetfilter_log/libnetfilter_log.h
parentba196a97e810746e5660fe3f57c87c0ed0f2b324 (diff)
include: Add extern "C" declarations to header-files.
Declare functions with extern "C" for inclusion in C++. Reported-by: Stefan Laufmann <stefan.laufmann@emlix.com> Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnetfilter_log/libnetfilter_log.h')
-rw-r--r--include/libnetfilter_log/libnetfilter_log.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libnetfilter_log/libnetfilter_log.h b/include/libnetfilter_log/libnetfilter_log.h
index 46767eb..6192fa3 100644
--- a/include/libnetfilter_log/libnetfilter_log.h
+++ b/include/libnetfilter_log/libnetfilter_log.h
@@ -14,6 +14,10 @@
#include <linux/netlink.h>
#include <libnetfilter_log/linux_nfnetlink_log.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct nflog_handle;
struct nflog_g_handle;
struct nflog_data;
@@ -97,4 +101,8 @@ int nflog_nlmsg_snprintf(char *buf, size_t bufsiz, const struct nlmsghdr *nlh,
struct nlattr **attr, enum nflog_output_type type,
uint32_t flags);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif /* __LIBNETFILTER_LOG_H */