All checks were successful
CI Code / Check spelling (pull_request) Successful in 18s
CI Code / Check coding style (pull_request) Successful in 30s
CI Code / Linux (ubuntu) (pull_request) Successful in 4m51s
CI Code / Linux (debian) (pull_request) Successful in 6m59s
CI Code / Linux (arch) (pull_request) Successful in 10m12s
CI Code / Code Coverage (pull_request) Successful in 6m44s
Roll the tree back to the pre-merge tip3b673150b, undoing the upstream sync merge72f4f186d(303 files) and the 13 post-merge commits layered on top of it. Purpose: restore the last pre-sync baseline so the reported OMEMO/OTR encryption regressions can be reproduced against a known-good state and the upstream sync ruled in or out as the cause. Nothing is dropped from history; the merge and every post-merge commit remain reachable and can be cherry-picked back selectively. Baseline:3b673150bchore(chatlog): disable background message file logging (stage 1) Undoes merge:72f4f186dmerge: sync upstream profanity-im/profanity
45 lines
658 B
C
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
|