From c6a30cfe9057a707f5c5b70ee247485872abc56c Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 15 Jan 2013 14:16:38 +0100 Subject: expr: add type and flags to snprintf interface Propagate the type and flags parameter to the expressions, so we can implement outputs in different formats. Signed-off-by: Pablo Neira Ayuso --- src/expr_ops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/expr_ops.h') diff --git a/src/expr_ops.h b/src/expr_ops.h index 2322958..d6e4ec9 100644 --- a/src/expr_ops.h +++ b/src/expr_ops.h @@ -16,7 +16,7 @@ struct expr_ops { const void *(*get)(struct nft_rule_expr *e, uint16_t type, size_t *data_len); int (*parse)(struct nft_rule_expr *e, struct nlattr *attr); void (*build)(struct nlmsghdr *nlh, struct nft_rule_expr *e); - int (*snprintf)(char *buf, size_t len, struct nft_rule_expr *e); + int (*snprintf)(char *buf, size_t len, uint32_t type, uint32_t flags, struct nft_rule_expr *e); }; struct expr_ops *nft_expr_ops_lookup(const char *name); -- cgit v1.2.3