From d844fa06e43bc80487acfe5647cef4d4994c95fd Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 4 Jul 2013 14:50:22 +0200 Subject: 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 --- src/internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/internal.h') diff --git a/src/internal.h b/src/internal.h index 55505be..ee09661 100644 --- a/src/internal.h +++ b/src/internal.h @@ -15,6 +15,8 @@ #ifdef XML_PARSING #include +struct nft_rule_expr *nft_mxml_expr_parse(mxml_node_t *node); +int nft_mxml_reg_parse(mxml_node_t *tree, const char *reg_name, uint32_t flags); #endif #define NFT_TABLE_XML_VERSION 0 -- cgit v1.2.3