Add I/O error handling and use filenames instead of file descriptors

This commit is contained in:
William Wennerström
2020-07-21 09:31:47 +02:00
parent 73f313b921
commit 62cbad1c6e
10 changed files with 102 additions and 71 deletions

View File

@@ -49,12 +49,11 @@
typedef struct http_download_t
{
char* url;
FILE* filehandle;
char* filename;
curl_off_t bytes_received;
ProfWin* window;
pthread_t worker;
int cancel;
int close;
} HTTPDownload;
void* http_file_get(void* userdata);