aboutsummaryrefslogtreecommitdiff
path: root/inc/parse.h
blob: 2368199ab951572c7d967f939a166a877f8cbeb6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) 2023, Marvin Borner <dev@marvinborner.de>
// SPDX-License-Identifier: MIT

#ifndef BLOC_PARSE_H
#define BLOC_PARSE_H

#include <stddef.h>

#include <term.h>
#include <spec.h>

struct bloc_parsed {
	size_t length;
	struct term **entries;
};

struct bloc_parsed *parse_bloc(const void *bloc);
void free_bloc(struct bloc_parsed *bloc);

#endif