From 7feece21f72ebf4633048b2dd447e31da30819fb Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 8 May 2018 13:08:35 +0200 Subject: libnftables: Make some functions globally accessible This removes static flag and adds header prototype for the following functions: * must_print_eq_op() from src/expression.c * fib_result_str() from src/fib.c * set_policy2str() and chain_policy2str from src/rule.c In fib.h, include linux/netfilter/nf_tables.h to make sure enum nft_fib_result is known when including this file. Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- include/expression.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/expression.h') diff --git a/include/expression.h b/include/expression.h index f0ba6fc1..23d6bd23 100644 --- a/include/expression.h +++ b/include/expression.h @@ -366,6 +366,8 @@ extern struct expr *unary_expr_alloc(const struct location *loc, extern struct expr *binop_expr_alloc(const struct location *loc, enum ops op, struct expr *left, struct expr *right); +extern bool must_print_eq_op(const struct expr *expr); + extern struct expr *relational_expr_alloc(const struct location *loc, enum ops op, struct expr *left, struct expr *right); -- cgit v1.2.3