ustream: add a pointer to the ustream struct useful for chaining ustreams
[project/libubox.git] / ustream.h
index c9e23e8..29f370f 100644 (file)
--- a/ustream.h
+++ b/ustream.h
@@ -19,6 +19,7 @@
 #ifndef __USTREAM_H
 #define __USTREAM_H
 
+#include <stdarg.h>
 #include "uloop.h"
 
 struct ustream;
@@ -48,6 +49,7 @@ struct ustream_buf_list {
 struct ustream {
        struct ustream_buf_list r, w;
        struct uloop_timeout state_change;
+       struct ustream *next;
 
        /*
         * notify_read: