summaryrefslogtreecommitdiffstats
path: root/src/io.h
blob: eca6aec540fac29664f2bb0a7befe5be6476d44d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: LGPL-2.1-only */

/* Copyright (C) 2020 Gediminas Jakutis */

#ifndef ALGOS_IO_H_INCLUDED
#define ALGOS_IO_H_INCLUDED

#include "defs.h"

int stream_open(struct stream * const in, const struct settings * const s);
int stream_close(struct stream * const in);

int direct_get_array(struct stream * const restrict in, ssize_t idx, struct entry_l * const data);
int direct_get_list(struct stream * const restrict in, ssize_t idx, struct entry_l * const data);

int direct_put_array(struct stream * const restrict in, ssize_t idx, const struct entry_l * const data);
int direct_put_list(struct stream * const restrict in, ssize_t idx, const struct entry_l * const data);

#endif /* ALGOS_IO_H_INCLUDED */