aboutgitcodelistschat:MatrixIRC
path: root/cooker/parse.h
blob: ece2848eb6738326ab6e4a9fdb15dc90bc345eb5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright 2023 Red Hat GmbH
 * Author: Stefano Brivio <sbrivio@redhat.com>
 */

#ifndef PARSE_H
#define PARSE_H

long long value_get_num(struct num *desc, JSON_Value *value);
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 */