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:
josch
2014-09-20 10:59:54 +02:00
parent d8e00119b4
commit 097a855751
43 changed files with 1325 additions and 1278 deletions

View File

@@ -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