summaryrefslogtreecommitdiffstats
path: root/src/datagen.h
blob: 63b34618e8f0666e300d2120b4d1d87a2b6325e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* SPDX-License-Identifier: LGPL-2.1-only */

/* Copyright (C) 2020 Gediminas Jakutis */

#ifndef ALGOS_DATAGEN_H_INCLUDED
#define ALGOS_DATAGEN_H_INCLUDED

#include "defs.h"

int gen_get_array(struct stream * const restrict in, ssize_t idx, struct entry_l * const data);
int gen_get_list(struct stream * const restrict in, ssize_t idx, struct entry_l * const data);
int gen_put(struct stream * const restrict in, ssize_t idx, const struct entry_l * const data);

#endif /* ALGOS_DATAGEN_H_INCLUDED */