mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-23 23:46:22 +00:00
Fix stubs and move some tests to http_common
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "tools/http_download.h"
|
||||
#include "tools/http_common.c"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@@ -15,9 +15,13 @@ typedef struct aesgcm_download_t
|
||||
HTTPDownload* http_dl;
|
||||
} AESGCMDownload;
|
||||
|
||||
void* aesgcm_file_get(void* userdata);
|
||||
void*
|
||||
aesgcm_file_get(void* userdata)
|
||||
{
|
||||
return NULL;
|
||||
};
|
||||
|
||||
void aesgcm_download_cancel_processes(ProfWin* window);
|
||||
void aesgcm_download_add_download(AESGCMDownload* download);
|
||||
void aesgcm_download_cancel_processes(ProfWin* window){};
|
||||
void aesgcm_download_add_download(AESGCMDownload* download){};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
#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
|
||||
@@ -18,9 +18,4 @@ typedef struct http_download_t
|
||||
int cancel;
|
||||
} HTTPDownload;
|
||||
|
||||
void* http_file_get(void* userdata);
|
||||
|
||||
void http_download_cancel_processes(ProfWin* window);
|
||||
void http_download_add_download(HTTPDownload* download);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -20,8 +20,6 @@ typedef struct http_upload_t
|
||||
int cancel;
|
||||
} HTTPUpload;
|
||||
|
||||
//GSList *upload_processes;
|
||||
|
||||
void*
|
||||
http_file_put(void* userdata)
|
||||
{
|
||||
@@ -33,6 +31,7 @@ file_mime_type(const char* const file_name)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
off_t
|
||||
file_size(const char* const file_name)
|
||||
{
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
#include "test_form.h"
|
||||
#include "test_callbacks.h"
|
||||
#include "test_plugins_disco.h"
|
||||
#include "test_http_download.h"
|
||||
#include "test_http_common.h"
|
||||
|
||||
int
|
||||
main(int argc, char* argv[])
|
||||
|
||||
Reference in New Issue
Block a user