Add stubs

This commit is contained in:
William Wennerström
2020-07-21 11:36:09 +02:00
parent ab83afe21b
commit be62b446f7
5 changed files with 55 additions and 10 deletions

View File

@@ -0,0 +1,23 @@
#ifndef TOOLS_AESGCM_DOWNLOAD_H
#define TOOLS_AESGCM_DOWNLOAD_H
#include <pthread.h>
typedef struct prof_win_t ProfWin;
typedef struct http_download_t HTTPDownload;
typedef struct aesgcm_download_t
{
char* url;
char* filename;
ProfWin* window;
pthread_t worker;
HTTPDownload* http_dl;
} AESGCMDownload;
void* aesgcm_file_get(void* userdata);
void aesgcm_download_cancel_processes(ProfWin* window);
void aesgcm_download_add_download(AESGCMDownload* download);
#endif

View File

@@ -0,0 +1,16 @@
#ifndef TOOLS_HTTP_COMMON_H
#define TOOLS_HTTP_COMMON_H
typedef struct prof_win_t ProfWin;
char*
http_basename_from_url(const char* url)
{
return "";
}
void http_print_transfer(ProfWin* window, char* url, const char* fmt, ...);
void http_print_transfer_update(ProfWin* window, char* url,
const char* fmt, ...);
#endif

View File

@@ -23,6 +23,4 @@ void* http_file_get(void* userdata);
void http_download_cancel_processes(ProfWin* window);
void http_download_add_download(HTTPDownload* download);
char* http_filename_from_url(const char* url);
#endif