add s->poll wrapper
authorFelix Fietkau <nbd@openwrt.org>
Tue, 22 Jan 2013 12:38:35 +0000 (13:38 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 22 Jan 2013 12:38:35 +0000 (13:38 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
ustream-ssl.c

index adc88b438ce36d21eef490abfeb9fd4c033f640b..f403cb55d5d88427d4d3525b5bae99a44d227b59 100644 (file)
@@ -183,6 +183,13 @@ static void ustream_ssl_free(struct ustream *s)
        us->error = false;
 }
 
+static bool ustream_ssl_poll(struct ustream *s)
+{
+       struct ustream_ssl *us = container_of(s, struct ustream_ssl, stream);
+
+       return ustream_poll(us->conn);
+}
+
 static void ustream_ssl_stream_init(struct ustream_ssl *us)
 {
        struct ustream *conn = us->conn;
@@ -194,6 +201,7 @@ static void ustream_ssl_stream_init(struct ustream_ssl *us)
 
        s->free = ustream_ssl_free;
        s->write = ustream_ssl_write;
+       s->poll = ustream_ssl_poll;
        s->set_read_blocked = ustream_ssl_set_read_blocked;
        ustream_init_defaults(s);
 }