diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-08-07 23:51:18 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-08-08 12:03:26 +0200 |
commit | a805eab34e34aaf2f08c607e770ec0b8df992f4a (patch) | |
tree | 20cbd71040e52ee4d4fe3dc450e5d9d6eeb71d1d /src/rt.c | |
parent | e8417f7bcbfe20524307557f8687bdd3a665f73e (diff) |
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 <pablo@netfilter.org>
Diffstat (limited to 'src/rt.c')
-rw-r--r-- | src/rt.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -40,10 +40,11 @@ static void realm_type_print(const struct expr *expr, struct output_ctx *octx) return symbolic_constant_print(realm_tbl, expr, true, octx); } -static struct error_record *realm_type_parse(const struct expr *sym, +static struct error_record *realm_type_parse(struct parse_ctx *ctx, + const struct expr *sym, struct expr **res) { - return symbolic_constant_parse(sym, realm_tbl, res); + return symbolic_constant_parse(ctx, sym, realm_tbl, res); } const struct datatype realm_type = { |