Files
cproof/tests/unittests/tools/stub_http_upload.c
Jabber Developer b4d3563b96
All checks were successful
CI / Check coding style (push) Successful in 29s
CI / Check spelling (push) Successful in 16s
CI / Linux (debian) (push) Successful in 9m35s
CI / Linux (arch) (push) Successful in 11m27s
CI / Linux (fedora) (push) Successful in 13m57s
CI / Linux (ubuntu) (push) Successful in 11m21s
Cleanup (#5)
- Update formatting for stub files
- Update docs

While original project, Profanity, provides valuable basis for this
fork, we are not affiliated with the upstream. This commit
is updating documentation to reflect accurate information.

The docs are going to be updated further once the website is created.

Reviewed-on: devs/profanity#5
Co-authored-by: Jabber Developer <jabber.developer@jabber.space>
Co-committed-by: Jabber Developer <jabber.developer@jabber.space>
2025-06-20 18:20:47 +00: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