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 --- src/statement.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/statement.c') diff --git a/src/statement.c b/src/statement.c index a5ef7d7d..6537bbbd 100644 --- a/src/statement.c +++ b/src/statement.c @@ -178,7 +178,7 @@ static const char *objref_type[NFT_OBJECT_MAX + 1] = { [NFT_OBJECT_LIMIT] = "limit", }; -static const char *objref_type_name(uint32_t type) +const char *objref_type_name(uint32_t type) { if (type > NFT_OBJECT_MAX) return "unknown"; @@ -225,7 +225,7 @@ static const char *syslog_level[LOG_DEBUG + 1] = { [LOG_DEBUG] = "debug", }; -static const char *log_level(uint32_t level) +const char *log_level(uint32_t level) { if (level > LOG_DEBUG) return "unknown"; -- cgit v1.2.3