mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-01-13 13:14:29 -08:00
use gnu indent to enforce coding style and adapt source
- indent options are listed in ./.indent.pro - use test case to run indent
This commit is contained in:
22
utils/http.h
22
utils/http.h
@@ -25,13 +25,19 @@
|
||||
|
||||
typedef struct mfhttp mfhttp;
|
||||
|
||||
mfhttp* http_create(void);
|
||||
void http_destroy(mfhttp* conn);
|
||||
int http_get_buf(mfhttp *conn, const char *url, int (*data_handler)(mfhttp *conn, void *data), void *data);
|
||||
int http_post_buf(mfhttp *conn, const char *url, const char *post_args, int (*data_handler)(mfhttp *conn, void *data), 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);
|
||||
|
||||
mfhttp *http_create(void);
|
||||
void http_destroy(mfhttp * conn);
|
||||
int http_get_buf(mfhttp * conn, const char *url,
|
||||
int (*data_handler) (mfhttp * conn, void *data),
|
||||
void *data);
|
||||
int http_post_buf(mfhttp * conn, const char *url,
|
||||
const char *post_args,
|
||||
int (*data_handler) (mfhttp * conn, void *data),
|
||||
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);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user