Compile fix
FossilOrigin-Name: 51aafcb7d95339b3fdeb27bfc69a5e8bcc1633f7623a5a2fa3409ab0c57cc34c
This commit is contained in:
parent
0d59ccf1ce
commit
05684e236f
2 changed files with 4 additions and 5 deletions
|
@ -16,6 +16,7 @@
|
|||
#ifndef MASTODONT_RELATIONSHIP_H
|
||||
#define MASTODONT_RELATIONSHIP_H
|
||||
#include <mastodont_types.h>
|
||||
#include <mastodont_request.h>
|
||||
|
||||
struct mstdnt_relationship
|
||||
{
|
||||
|
|
|
@ -14,11 +14,10 @@
|
|||
*/
|
||||
|
||||
#include <mastodont_relationship.h>
|
||||
#include <mastodont_request.h>
|
||||
|
||||
struct _mstdnt_relationships_cb_args
|
||||
{
|
||||
struct mstdnt_relationship* relationships;
|
||||
struct mstdnt_relationship** relationships;
|
||||
size_t* size;
|
||||
};
|
||||
|
||||
|
@ -34,8 +33,7 @@ int _mstdnt_relationships_result_callback(struct mstdnt_fetch_results* results,
|
|||
void* _args)
|
||||
{
|
||||
struct _mstdnt_relationships_cb_args* args = _args;
|
||||
return mstdnt_relationships_result(storage, results, args->relationships, args->size);
|
||||
// TODO here
|
||||
return mstdnt_relationships_result(results, storage, args->relationships, args->size);
|
||||
}
|
||||
|
||||
int mastodont_get_relationships(mastodont_t* data,
|
||||
|
@ -54,7 +52,7 @@ int mastodont_get_relationships(mastodont_t* data,
|
|||
NULL, 0,
|
||||
NULL, 0,
|
||||
/* params, _mstdnt_arr_len(params), */
|
||||
CURLOPT_GET,
|
||||
CURLOPT_HTTPGET,
|
||||
&cb_args,
|
||||
_mstdnt_relationships_result_callback, /* TODO populate the status back?
|
||||
* (not sure if the api returns it or not) */
|
||||
|
|
Loading…
Reference in a new issue