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;
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
//GSList *upload_processes;
|
|
|
|
|
|
|
|
void* http_file_put(void *userdata) {}
|
|
|
|
|
|
|
|
char* file_mime_type(const char* const file_name) {}
|
|
|
|
off_t file_size(const char* const file_name) {}
|
|
|
|
|
|
|
|
#endif
|