From 28b87e4d9c60b49d46b03a19b7b83e23e222087a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 22 Aug 2022 01:02:34 +0200 Subject: Handle exceptions in fetching thread. --- c/data.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'c/data.h') diff --git a/c/data.h b/c/data.h index 4e0d97a..23c9e5f 100644 --- a/c/data.h +++ b/c/data.h @@ -9,6 +9,10 @@ #include "wcharptr.h" #include "win.h" +/* Fetch data from the web. */ +void FetchData(); +void WaitFetchData(bool* bDone) noexcept; + /* The structs ending with A are written as-is to disk. As such, they * should be regarded as immutable. If the format needs to be changed * in the future, then new structs ending with B should be added. */ @@ -162,9 +166,6 @@ struct FileView size_t c; }; -/* Fetch data from the web. */ -void FetchData(bool* bDone); - inline int FromWeb(const int iEp, ElvDataA& e, DlvDataA& d) noexcept { WcharPtr title, wiki, date, source, hint; -- cgit v1.2.3