1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-02-02 15:08:15 -05:00
profanity/tests/unittests/tools/stub_http_upload.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
656 B
C
Raw Normal View History

2016-04-11 20:13:18 +02:00
#ifndef TOOLS_HTTP_UPLOAD_H
#define TOOLS_HTTP_UPLOAD_H
#include <curl/curl.h>
2016-10-03 19:06:58 +02:00
#include <pthread.h>
2016-04-11 20:13:18 +02:00
// 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;
}
2020-07-07 14:18:57 +02:00
char*
file_mime_type(const char* const file_name)
{
return NULL;
}
off_t
file_size(int filedes)
{
return 0;
2020-07-07 14:18:57 +02:00
}
2020-04-17 10:44:39 +02:00
void http_upload_cancel_processes(){};
void http_upload_add_upload(){};
2016-04-11 20:13:18 +02:00
#endif