aboutsummaryrefslogtreecommitdiff
path: root/c/data.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-22 01:02:34 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-22 01:02:34 +0200
commit28b87e4d9c60b49d46b03a19b7b83e23e222087a (patch)
tree1f0a71ca09f04eac51fdabf2e8cfabc87a6e02a3 /c/data.h
parent801c10f07d1c92e1b1b89d8a30cb0cf86745de31 (diff)
downloadEpisodeBrowser-28b87e4d9c60b49d46b03a19b7b83e23e222087a.tar.gz
Handle exceptions in fetching thread.
Diffstat (limited to 'c/data.h')
-rw-r--r--c/data.h7
1 files changed, 4 insertions, 3 deletions
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;