summaryrefslogtreecommitdiffstats
path: root/src/io.h
diff options
context:
space:
mode:
authorGravatar Gediminas Jakutis <gediminas@varciai.lt> 2020-02-14 14:17:26 +0200
committerGravatar Gediminas Jakutis <gediminas@varciai.lt> 2020-02-14 14:17:26 +0200
commit6bd9b777f28db4d1c7927f7bb3dced339b0decb5 (patch)
treee95f8a770f54d18b55bf47afd6bbfd16c2f97615 /src/io.h
parentf8a4fbeeb230157f73789dc860ffbe84f76d0002 (diff)
downloadalgos-ld1-6bd9b777f28db4d1c7927f7bb3dced339b0decb5.tar.gz
algos-ld1-6bd9b777f28db4d1c7927f7bb3dced339b0decb5.tar.bz2
algos-ld1-6bd9b777f28db4d1c7927f7bb3dced339b0decb5.zip
add first bits of the I/O wrapper.
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
Diffstat (limited to 'src/io.h')
-rw-r--r--src/io.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/io.h b/src/io.h
new file mode 100644
index 0000000..efc3f94
--- /dev/null
+++ b/src/io.h
@@ -0,0 +1,16 @@
+#ifndef ALGOS_IO_H_INCLUDED
+#define ALGOS_IO_H_INCLUDED
+
+#include <stddef.h>
+
+struct stream {
+ size_t n;
+ size_t stride;
+ int fd;
+ int out;
+ char *name;
+};
+
+int openstream(struct stream *in);
+
+#endif /* ALGOS_IO_H_INCLUDED */