From de532922d9ab42aa15b40d47c8db53ac2af38500 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 23 Jan 2017 19:56:03 +0300 Subject: Introducing tasks. --- src/nxt_stream_source.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/nxt_stream_source.h') diff --git a/src/nxt_stream_source.h b/src/nxt_stream_source.h index ae8d5b71..27a6bfc8 100644 --- a/src/nxt_stream_source.h +++ b/src/nxt_stream_source.h @@ -10,7 +10,8 @@ typedef struct nxt_stream_source_s nxt_stream_source_t; -typedef void (*nxt_stream_source_handler_t)(nxt_stream_source_t *u); +typedef void (*nxt_stream_source_handler_t)(nxt_task_t *task, + nxt_stream_source_t *s); struct nxt_stream_source_s { nxt_event_conn_t *conn; @@ -25,7 +26,7 @@ struct nxt_stream_source_s { }; -void nxt_stream_source_connect(nxt_stream_source_t *stream); +void nxt_stream_source_connect(nxt_task_t *task, nxt_stream_source_t *stream); #endif /* _NXT_STREAM_SOURCE_H_INCLUDED_ */ -- cgit