summaryrefslogtreecommitdiffstats
path: root/include/libipset/mnl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libipset/mnl.h')
-rw-r--r--include/libipset/mnl.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/libipset/mnl.h b/include/libipset/mnl.h
index 0516ec7..7aaf44e 100644
--- a/include/libipset/mnl.h
+++ b/include/libipset/mnl.h
@@ -22,8 +22,15 @@ struct nfgenmsg {
};
#endif
-extern int ipset_get_nlmsg_type(const struct nlmsghdr *nlh);
+#ifdef __cplusplus
+extern "C" {
+#endif
+extern int ipset_get_nlmsg_type(const struct nlmsghdr *nlh);
extern const struct ipset_transport ipset_mnl_transport;
+#ifdef __cplusplus
+}
+#endif
+
#endif /* LIBIPSET_MNL_H */