1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-08 19:34:14 -04:00
profanity/tests/unittests/tools/stub_http_upload.c

45 lines
672 B
C
Raw Normal View History

2016-04-11 14:13:18 -04:00
#ifndef TOOLS_HTTP_UPLOAD_H
#define TOOLS_HTTP_UPLOAD_H
#include <curl/curl.h>
2016-10-03 13:06:58 -04:00
#include <pthread.h>
2016-04-11 14:13:18 -04:00
// forward -> ui/win_types.h
typedef struct prof_win_t ProfWin;
2020-07-07 08:18:57 -04:00
typedef struct http_upload_t
{
char* filename;
2016-04-11 14:13:18 -04:00
off_t filesize;
curl_off_t bytes_sent;
2020-07-07 08:18:57 -04:00
char* mime_type;
char* get_url;
char* put_url;
ProfWin* window;
2016-04-11 14:13:18 -04:00
pthread_t worker;
int cancel;
} HTTPUpload;
2020-07-07 08:18:57 -04:00
void*
http_file_put(void* userdata)
{
return NULL;
}
char*
file_mime_type(const char* const file_name)
{
return NULL;
}
2020-07-07 08:18:57 -04:00
off_t
file_size(const char* const file_name)
{
return 0;
}
void http_upload_cancel_processes(){};
void http_upload_add_upload(){};
2020-04-17 04:44:39 -04:00
2016-04-11 14:13:18 -04:00
#endif