mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-01-13 13:14:29 -08:00
Allow file upload
- add upload/simple - add upload/poll_upload - add "put" command to mfshell - add http POST method
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
|
||||
#include <jansson.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct mfhttp mfhttp;
|
||||
|
||||
@@ -36,9 +36,12 @@ int http_post_buf(mfhttp * conn, const char *url,
|
||||
void *data);
|
||||
int http_get_file(mfhttp * conn, const char *url,
|
||||
const char *path);
|
||||
int http_post_file(mfhttp * conn, const char *url,
|
||||
const char *post_args, FILE * fd);
|
||||
json_t *http_parse_buf_json(mfhttp * conn, size_t flags,
|
||||
json_error_t * error);
|
||||
int http_post_file(mfhttp * conn, const char *url,
|
||||
const char *path, const char *filename,
|
||||
uint64_t filesize, const char *fhash,
|
||||
int (*data_handler) (mfhttp * conn, void *data),
|
||||
void *data);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user