All checks were successful
CI / Check coding style (push) Successful in 29s
CI / Check spelling (push) Successful in 16s
CI / Linux (debian) (push) Successful in 9m35s
CI / Linux (arch) (push) Successful in 11m27s
CI / Linux (fedora) (push) Successful in 13m57s
CI / Linux (ubuntu) (push) Successful in 11m21s
- Update formatting for stub files - Update docs While original project, Profanity, provides valuable basis for this fork, we are not affiliated with the upstream. This commit is updating documentation to reflect accurate information. The docs are going to be updated further once the website is created. Reviewed-on: devs/profanity#5 Co-authored-by: Jabber Developer <jabber.developer@jabber.space> Co-committed-by: Jabber Developer <jabber.developer@jabber.space>
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
|