diff options
author | William Wennerström <william@wstrm.dev> | 2020-06-27 17:19:35 +0200 |
---|---|---|
committer | William Wennerström <william@wstrm.dev> | 2020-11-16 21:58:08 +0100 |
commit | 39c32906131b3bb9383ed61be15ba0dd9d720898 (patch) | |
tree | 296eb6856571ee4bd4523db0e54df40cd21f6a03 /src/tools/http_upload.h | |
parent | 3370418d71de255c832da97113543e554ec0e86b (diff) | |
download | profani-tty-39c32906131b3bb9383ed61be15ba0dd9d720898.tar.gz |
Refactor to use file stream
Diffstat (limited to 'src/tools/http_upload.h')
-rw-r--r-- | src/tools/http_upload.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/http_upload.h b/src/tools/http_upload.h index cbab96ed..5b3b4754 100644 --- a/src/tools/http_upload.h +++ b/src/tools/http_upload.h @@ -47,7 +47,7 @@ typedef struct http_upload_t { char *filename; - char *filepath; + FILE *filehandle; off_t filesize; curl_off_t bytes_sent; char* mime_type; @@ -60,8 +60,8 @@ typedef struct http_upload_t { void* http_file_put(void* userdata); -char* file_mime_type(const char* const filepath); -off_t file_size(const char* const filepath); +char* file_mime_type(const char* const filename); +off_t file_size(int filedes); void http_upload_cancel_processes(ProfWin* window); void http_upload_add_upload(HTTPUpload* upload); |