diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-11-06 18:28:33 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-11-10 18:11:43 +0100 |
commit | f858f20abb8e6b6881d4c343b737a09697c95779 (patch) | |
tree | 3f1aef12fca042f533252162a7d2e06ed91106a1 /include/nftables.h | |
parent | 850e311d98a2340a9d2d86d28a4d2280fa6cf76c (diff) |
include: add cli.h
Needed by follow up patches to use autotools.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/nftables.h')
-rw-r--r-- | include/nftables.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/include/nftables.h b/include/nftables.h index 4c33ec63..cf19de82 100644 --- a/include/nftables.h +++ b/include/nftables.h @@ -31,18 +31,6 @@ extern unsigned int handle_output; extern unsigned int debug_level; extern const char *include_paths[INCLUDE_PATHS_MAX]; -struct parser_state; -#ifdef HAVE_LIBREADLINE -extern int cli_init(struct parser_state *state); -#else -static inline int cli_init(struct parser_state *state) -{ - return -1; -} -#endif -extern void cli_exit(void); -extern void cli_display(const char *fmt, va_list ap) __fmtstring(1, 0); - enum nftables_exit_codes { NFT_EXIT_SUCCESS = 0, NFT_EXIT_FAILURE = 1, @@ -116,6 +104,8 @@ struct input_descriptor { off_t line_offset; }; +struct parser_state; + int nft_run(void *scanner, struct parser_state *state, struct list_head *msgs); #endif /* NFTABLES_NFTABLES_H */ |