summaryrefslogtreecommitdiffstats
path: root/src/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/io.c b/src/io.c
index edcda17..a67c230 100644
--- a/src/io.c
+++ b/src/io.c
@@ -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;