summaryrefslogtreecommitdiffstats
path: root/src/lib/ostream-unix.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/ostream-unix.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/ostream-unix.h b/src/lib/ostream-unix.h
new file mode 100644
index 0000000..849669b
--- /dev/null
+++ b/src/lib/ostream-unix.h
@@ -0,0 +1,10 @@
+#ifndef OSTREAM_UNIX_H
+#define OSTREAM_UNIX_H
+
+struct ostream *o_stream_create_unix(int fd, size_t max_buffer_size);
+/* Write fd to UNIX socket along with the next outgoing data block.
+ Returns TRUE if fd is accepted, and FALSE if a previous fd still
+ needs to be sent. */
+bool o_stream_unix_write_fd(struct ostream *output, int fd);
+
+#endif