Int return value
FossilOrigin-Name: f42d5b79c3a34707a149bd61064149ea5b33936ac347c1112cb5fdae522d2514
This commit is contained in:
parent
d4041fc030
commit
d47cedfe63
3 changed files with 4 additions and 4 deletions
|
@ -71,7 +71,7 @@ int mstdnt_fetch_curl_async(mastodont_t* mstdnt,
|
|||
struct mstdnt_args* args,
|
||||
mstdnt_request_cb_t cb_request,
|
||||
void* cb_args,
|
||||
int (*json_cb)(cJSON*, void*),
|
||||
int (*json_cb)(cJSON*, void*, mstdnt_request_cb_data*),
|
||||
void* json_args,
|
||||
char* url,
|
||||
CURLoption request_t,
|
||||
|
|
|
@ -30,7 +30,7 @@ typedef int8_t mstdnt_bool;
|
|||
|
||||
struct mstdnt_storage;
|
||||
|
||||
typedef void (*mstdnt_data_free_cb_t)(void*, size_t);
|
||||
typedef void (*mstdnt_data_free_cb_t)(void*);
|
||||
|
||||
typedef struct mstdnt_request_cb_data {
|
||||
struct mstdnt_storage* storage;
|
||||
|
@ -38,7 +38,7 @@ typedef struct mstdnt_request_cb_data {
|
|||
mstdnt_data_free_cb_t data_free_cb;
|
||||
} mstdnt_request_cb_data;
|
||||
|
||||
typedef void (*mstdnt_request_cb_t)(mstdnt_request_cb_data* data, void* args);
|
||||
typedef int (*mstdnt_request_cb_t)(mstdnt_request_cb_data* data, void* args);
|
||||
|
||||
// Return types for mstdnt_request_cb_t, specifies
|
||||
// what we want to do with the data
|
||||
|
|
|
@ -52,7 +52,7 @@ int mstdnt_fetch_curl_async(mastodont_t* mstdnt,
|
|||
struct mstdnt_args* m_args,
|
||||
mstdnt_request_cb_t cb_request,
|
||||
void* cb_args,
|
||||
int (*json_cb)(cJSON*, void*),
|
||||
int (*json_cb)(cJSON*, void*, mstdnt_request_cb_data*),
|
||||
void* json_args,
|
||||
char* _url,
|
||||
CURLoption request_t,
|
||||
|
|
Loading…
Reference in a new issue