summaryrefslogtreecommitdiff
path: root/src/io.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/io.hh')
-rw-r--r--src/io.hh13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/io.hh b/src/io.hh
new file mode 100644
index 0000000..8786549
--- /dev/null
+++ b/src/io.hh
@@ -0,0 +1,13 @@
+#ifndef IO_HH
+#define IO_HH
+
+#include <string>
+
+namespace io {
+
+bool read_all(int fd, std::string* out);
+bool write_all(int fd, std::string const& in);
+
+} // namespace io
+
+#endif // IO_HH