From: Felix Fietkau Date: Tue, 22 Jan 2013 12:38:35 +0000 (+0100) Subject: add s->poll wrapper X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f4cdb2ab298f03738bab57e4653e2142d0dfc2ae;p=project%2Fustream-ssl.git add s->poll wrapper Signed-off-by: Felix Fietkau --- diff --git a/ustream-ssl.c b/ustream-ssl.c index adc88b4..f403cb5 100644 --- a/ustream-ssl.c +++ b/ustream-ssl.c @@ -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); }