All checks were successful
CI / Check spelling (pull_request) Successful in 16s
CI / Check coding style (pull_request) Successful in 29s
CI / Linux (ubuntu) (pull_request) Successful in 10m9s
CI / Linux (debian) (pull_request) Successful in 11m49s
CI / Linux (fedora) (pull_request) Successful in 14m12s
CI / Linux (arch) (pull_request) Successful in 14m55s
34 lines
561 B
C
34 lines
561 B
C
#ifndef TOOLS_HTTP_DOWNLOAD_H
|
|
#define TOOLS_HTTP_DOWNLOAD_H
|
|
|
|
#include <curl/curl.h>
|
|
#include <pthread.h>
|
|
#include "common.h"
|
|
|
|
typedef struct prof_win_t ProfWin;
|
|
|
|
typedef struct http_download_t
|
|
{
|
|
char* id;
|
|
char* url;
|
|
char* filename;
|
|
char* directory;
|
|
FILE* filehandle;
|
|
curl_off_t bytes_received;
|
|
ProfWin* window;
|
|
pthread_t worker;
|
|
int cancel;
|
|
gboolean silent;
|
|
} HTTPDownload;
|
|
|
|
void*
|
|
http_file_get(void* userdata)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
void http_download_cancel_processes() {};
|
|
void http_download_add_download() {};
|
|
|
|
#endif
|