diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-05-14 19:49:13 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-05-19 21:42:36 +0200 |
commit | 99fc209e6a465ccb6ea96ef81116e8d931e2261c (patch) | |
tree | 7625c994bc04527af9099d06e84aed610801df5b /include/nftables.h | |
parent | 75b53c4a45518102ed8c1515fdf4b84a4293edf8 (diff) |
cli: complete basic functionality of the interactive mode
This patch adds missing code to get basic interactive mode
operative via `nft -i', including parsing, evaluation,
command execution via netlink and error reporting.
Autocomplete is not yet implemented.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/nftables.h')
-rw-r--r-- | include/nftables.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/nftables.h b/include/nftables.h index 66bfab30..0eab1e50 100644 --- a/include/nftables.h +++ b/include/nftables.h @@ -25,7 +25,7 @@ extern unsigned int debug_level; extern const char *include_paths[INCLUDE_PATHS_MAX]; struct parser_state; -extern int cli_init(void *scanner, struct parser_state *state); +extern int cli_init(struct parser_state *state); extern void cli_exit(void); extern void cli_display(const char *fmt, va_list ap) __fmtstring(1, 0); @@ -101,4 +101,6 @@ struct input_descriptor { off_t line_offset; }; +int nft_run(void *scanner, struct parser_state *state, struct list_head *msgs); + #endif /* NFTABLES_NFTABLES_H */ |