summaryrefslogtreecommitdiffstats
path: root/include/libnftables/expr.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-07-04 14:50:22 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-07-04 16:47:38 +0200
commitd844fa06e43bc80487acfe5647cef4d4994c95fd (patch)
tree2dd70dc1b8889da6f566e467eeebdd13feafeabb /include/libnftables/expr.h
parent0dbe80fee352545f51bdc4fd71621223e8b62306 (diff)
src: consolidate XML parsing of expressions via nft_mxml_expr_parse
Move common code for XML parsing of expressions to the new nft_mxml_expr_parse function. This patch reduces the XML parsing code in 300 LOC. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnftables/expr.h')
-rw-r--r--include/libnftables/expr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libnftables/expr.h b/include/libnftables/expr.h
index b7d408b..02f38d0 100644
--- a/include/libnftables/expr.h
+++ b/include/libnftables/expr.h
@@ -31,6 +31,8 @@ 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);