diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-22 01:02:34 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-22 01:02:34 +0200 |
commit | 28b87e4d9c60b49d46b03a19b7b83e23e222087a (patch) | |
tree | 1f0a71ca09f04eac51fdabf2e8cfabc87a6e02a3 /c/data.h | |
parent | 801c10f07d1c92e1b1b89d8a30cb0cf86745de31 (diff) | |
download | EpisodeBrowser-28b87e4d9c60b49d46b03a19b7b83e23e222087a.tar.gz |
Handle exceptions in fetching thread.
Diffstat (limited to 'c/data.h')
-rw-r--r-- | c/data.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; |