Since (
d844fa0 src: consolidate XML parsing of expressions via
nft_mxml_expr_parse), the library was not compiling with XML support
anymore.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
struct nlmsghdr;
struct nft_rule_expr;
+#ifndef XML_PARSING
+#define mxml_node_t void
+#endif
+
struct expr_ops {
char *name;
size_t alloc_len;
#include <libnftables/rule.h>
#include <libnftables/expr.h>
+#ifdef XML_PARSING
struct nft_rule_expr *nft_mxml_expr_parse(mxml_node_t *node)
{
mxml_node_t *tree;
err:
return -1;
}
+#endif