summaryrefslogtreecommitdiffstats
path: root/include/cli.h
blob: 1ae1237692c875d2397db61885fd123ef8e5c781 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _NFT_CLI_H_
#define _NFT_CLI_H_

#include <config.h>

struct parser_state;
#ifdef HAVE_LIBREADLINE
extern int cli_init(struct parser_state *state, struct output_ctx *octx);
#else
static inline int cli_init(struct parser_state *state, struct output_ctx *octx)
{
        return -1;
}
#endif
extern void cli_exit(void);
extern void cli_display(const char *fmt, va_list ap) __fmtstring(1, 0);

#endif