summaryrefslogtreecommitdiffstats
path: root/src/lib/ostream-multiplex.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ostream-multiplex.h')
-rw-r--r--src/lib/ostream-multiplex.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/ostream-multiplex.h b/src/lib/ostream-multiplex.h
new file mode 100644
index 0000000..2c7cdcd
--- /dev/null
+++ b/src/lib/ostream-multiplex.h
@@ -0,0 +1,8 @@
+#ifndef OSTREAM_MULTIPLEX
+#define OSTREAM_MULTIPLEX 1
+
+struct ostream *o_stream_create_multiplex(struct ostream *parent, size_t bufsize);
+struct ostream *o_stream_multiplex_add_channel(struct ostream *stream, uint8_t cid);
+uint8_t o_stream_multiplex_get_channel_id(struct ostream *stream);
+
+#endif