/* SPDX-License-Identifier: GPL-2.0-or-later * Copyright 2023 Red Hat GmbH * Author: Stefano Brivio */ #ifndef PARSE_H #define PARSE_H long long value_get_num(struct num *desc, JSON_Value *value); long long value_get_mask(struct num *desc); void value_get_flags(struct num *desc, JSON_Object *obj, union value *bitset, enum op_cmp_type *cmp, union value *cmpterm); size_t value_get_size(struct gluten_ctx *g, intptr_t id); void value_get(union desc desc, enum type type, JSON_Value *value, union value *out); struct field *select_field(struct gluten_ctx *g, int pos, struct select *s, union value v); void parse_file(struct gluten_ctx *g, const char *path); #endif /* PARSE_H */