diff options
Diffstat (limited to 'src/io.c')
-rw-r--r-- | src/io.c | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -10,6 +10,7 @@ #include <libgen.h> #include "io.h" #include "defs.h" +#include "datagen.h" static int stream_open_in(struct stream * const in, const struct settings * const s); static int stream_open_out(struct stream * const in, const struct settings * const s); @@ -83,6 +84,25 @@ early_err: return ret; } +int stream_get(struct stream *in, size_t idx, struct entry_l *data, int tag) +{ + int ret = 0; + + ret = in->get(in, idx, data, tag); + + return ret; +} + +int stream_put(struct stream *in, size_t idx, struct entry_l *data, int tag) +{ + int ret = 0; + + ret = in->put(in, idx, data, tag); + + return ret; +} + + static int stream_open_out(struct stream * const in, const struct settings * const s) { struct stat st; |