From a805eab34e34aaf2f08c607e770ec0b8df992f4a Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 7 Aug 2019 23:51:18 +0200 Subject: src: add parse_ctx object This object stores the dynamic symbol tables that are loaded from files. Pass this object to datatype parse functions, although this new parameter is not used yet, this is just a preparation patch. Signed-off-by: Pablo Neira Ayuso --- src/ct.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ct.c') diff --git a/src/ct.c b/src/ct.c index 14cc0e5e..c66b327a 100644 --- a/src/ct.c +++ b/src/ct.c @@ -171,7 +171,8 @@ static void ct_label_type_print(const struct expr *expr, nft_print(octx, "%lu", bit); } -static struct error_record *ct_label_type_parse(const struct expr *sym, +static struct error_record *ct_label_type_parse(struct parse_ctx *ctx, + const struct expr *sym, struct expr **res) { const struct symbolic_constant *s; -- cgit v1.2.3