mirror of
https://git.netfilter.org/nftables
synced 2026-01-27 02:44:07 +00:00
Extend cli to support for libedit readline shim code: ./configure --with-cli=editline Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
18 lines
343 B
C
18 lines
343 B
C
#ifndef _NFT_CLI_H_
|
|
#define _NFT_CLI_H_
|
|
|
|
#include <nftables/libnftables.h>
|
|
#include <config.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(void);
|
|
|
|
#endif
|