We don't need them anywhere, so let's keep their scope small.
return 0;
}
+
+enum io_stream_mode {
+ io_mode_text = 0,
+ io_mode_binary = 1,
+};
+
+struct io_stream_data {
+ enum io_stream_mode mode;
+ size_t blen;
+ char *buf;
+ knot_mm_t *pool;
+};
+
/**
* TTY control: process input and free() the buffer.
*
struct tls_ctx;
struct tls_client_ctx;
-
-enum io_stream_mode {
- io_mode_text = 0,
- io_mode_binary = 1,
-};
-
-struct io_stream_data {
- enum io_stream_mode mode;
- size_t blen;
- char *buf;
- knot_mm_t *pool;
-};
+struct io_stream_data;
/** Bind address into a file-descriptor (only, no libuv). type is e.g. SOCK_DGRAM */
int io_bind(const struct sockaddr *addr, int type, const endpoint_flags_t *flags);