Files
cproof/tests/unittests/tools/stub_http_upload.c
Jabber Developer 5d321a9030
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
Apply formatting for stubs
2025-06-20 19:42:16 +02:00

45 lines
658 B
C

#ifndef TOOLS_HTTP_UPLOAD_H
#define TOOLS_HTTP_UPLOAD_H
#include <curl/curl.h>
#include <pthread.h>
// forward -> ui/win_types.h
typedef struct prof_win_t ProfWin;
typedef struct http_upload_t
{
char* filename;
off_t filesize;
curl_off_t bytes_sent;
char* mime_type;
char* get_url;
char* put_url;
ProfWin* window;
pthread_t worker;
int cancel;
} HTTPUpload;
void*
http_file_put(void* userdata)
{
return NULL;
}
char*
file_mime_type(const char* const file_name)
{
return NULL;
}
off_t
file_size(int filedes)
{
return 0;
}
void http_upload_cancel_processes() {};
void http_upload_add_upload() {};
#endif