diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-22 13:38:35 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-22 13:38:35 +0100 |
commit | f4cdb2ab298f03738bab57e4653e2142d0dfc2ae (patch) | |
tree | 323ad48b7967bf96721fbfc360a94f4e2ba52cd8 | |
parent | 4b9b0031cce397ab2945b664d6df9f3ac4ddb3f6 (diff) | |
download | ustream-ssl-f4cdb2ab298f03738bab57e4653e2142d0dfc2ae.tar.gz |
add s->poll wrapper
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r-- | ustream-ssl.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); } |