summaryrefslogtreecommitdiff
path: root/include/channel.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/channel.h')
-rw-r--r--include/channel.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/channel.h b/include/channel.h
index d06e510..9b5fad8 100644
--- a/include/channel.h
+++ b/include/channel.h
@@ -34,7 +34,8 @@ struct tcp_channel {
#define CHANNEL_F_DEFAULT (1 << 0)
#define CHANNEL_F_BUFFERED (1 << 1)
#define CHANNEL_F_STREAM (1 << 2)
-#define CHANNEL_F_MAX (1 << 3)
+#define CHANNEL_F_ERRORS (1 << 3)
+#define CHANNEL_F_MAX (1 << 4)
union channel_type_conf {
struct mcast_conf mcast;
@@ -78,7 +79,8 @@ struct channel {
void *data;
};
-void channel_init(void);
+int channel_init(void);
+void channel_end(void);
struct channel *channel_open(struct channel_conf *conf);
void channel_close(struct channel *c);