From 5ea54b224a11358b6ae90b519979e09a655292e7 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Sun, 12 Apr 2015 20:17:52 +0100 Subject: expr: seperate expression parsing and building functions The expression build function currently assumes to be only used from rule context and actually builds rule attributes. Fix that and only build the expression. Also it seems to have been exported by accident, undo that. Additionally, move the expression parsing function from rule parsing and also remove any assumptions about being used in rule context. Signed-off-by: Patrick McHardy --- include/libnftnl/expr.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'include/libnftnl/expr.h') diff --git a/include/libnftnl/expr.h b/include/libnftnl/expr.h index 7bc0273..14daa83 100644 --- a/include/libnftnl/expr.h +++ b/include/libnftnl/expr.h @@ -36,10 +36,6 @@ uint32_t nft_rule_expr_get_u32(const struct nft_rule_expr *expr, uint16_t type); uint64_t nft_rule_expr_get_u64(const struct nft_rule_expr *expr, uint16_t type); const char *nft_rule_expr_get_str(const struct nft_rule_expr *expr, uint16_t type); -struct nlmsghdr; - -void nft_rule_expr_build_payload(struct nlmsghdr *nlh, struct nft_rule_expr *expr); - int nft_rule_expr_snprintf(char *buf, size_t buflen, struct nft_rule_expr *expr, uint32_t type, uint32_t flags); enum { -- cgit v1.2.3