diff options
author | 2020-03-10 10:15:53 +0200 | |
---|---|---|
committer | 2020-03-10 10:15:53 +0200 | |
commit | 61c3a9aa7a636ada2cedd5b6025d5c7ccc598c85 (patch) | |
tree | 6732e0e6847cc860c98bb9bfa7e5a5619d3504e2 /src/datagen.h | |
parent | 9eb76eda865dc4f82fd53223e5c557f707b569b9 (diff) | |
download | algos-ld1-61c3a9aa7a636ada2cedd5b6025d5c7ccc598c85.tar.gz algos-ld1-61c3a9aa7a636ada2cedd5b6025d5c7ccc598c85.tar.bz2 algos-ld1-61c3a9aa7a636ada2cedd5b6025d5c7ccc598c85.zip |
bolt on data generation, kind of.
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
Diffstat (limited to 'src/datagen.h')
-rw-r--r-- | src/datagen.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/datagen.h b/src/datagen.h index 7e753ab..63b3461 100644 --- a/src/datagen.h +++ b/src/datagen.h @@ -1,8 +1,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(struct stream *in, size_t idx, struct entry_l *data, int tag); +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 */ |