From a468b409901236ecf77f0cbd81dfeda96cebc758 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Mon, 27 Jun 2016 21:00:58 +0100 Subject: Refactor the fdset acquisition into the fetchers to stop fetch.c including curl.h --- content/fetchers.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'content/fetchers.h') diff --git a/content/fetchers.h b/content/fetchers.h index 92b11dc69..cd09e92e4 100644 --- a/content/fetchers.h +++ b/content/fetchers.h @@ -90,6 +90,12 @@ struct fetcher_operation_table { */ void (*poll)(lwc_string *scheme); + /** + * update an fdset with the FDs needed to poll cleanly + */ + int (*fdset)(lwc_string *scheme, fd_set *read_set, fd_set *write_set, + fd_set *error_set); + /** * Finalise the fetcher. */ -- cgit v1.2.3