summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/nftables/libnftables.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/nftables/libnftables.h b/include/nftables/libnftables.h
index 70e9d238..e39c5887 100644
--- a/include/nftables/libnftables.h
+++ b/include/nftables/libnftables.h
@@ -14,6 +14,10 @@
#include <stdio.h>
#include <stdbool.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct nft_ctx;
enum nft_debug_level {
@@ -75,4 +79,8 @@ void nft_ctx_clear_include_paths(struct nft_ctx *ctx);
int nft_run_cmd_from_buffer(struct nft_ctx *nft, const char *buf);
int nft_run_cmd_from_filename(struct nft_ctx *nft, const char *filename);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif /* LIB_NFTABLES_H */