summaryrefslogtreecommitdiffstats
path: root/include/cli.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cli.h')
-rw-r--r--include/cli.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/cli.h b/include/cli.h
new file mode 100644
index 0000000..f0a0d47
--- /dev/null
+++ b/include/cli.h
@@ -0,0 +1,16 @@
+#ifndef _NFT_CLI_H_
+#define _NFT_CLI_H_
+
+#include <nftables/libnftables.h>
+
+#if defined(HAVE_LIBREADLINE) || defined(HAVE_LIBEDIT) || defined(HAVE_LIBLINENOISE)
+extern int cli_init(struct nft_ctx *nft);
+#else
+static inline int cli_init(struct nft_ctx *nft)
+{
+ return -1;
+}
+#endif
+extern void cli_exit(int rc);
+
+#endif