steps towards an ncurses API

This commit is contained in:
2019-06-26 10:48:55 +02:00
parent 523725f375
commit e9bf4d0986
12 changed files with 384 additions and 49 deletions

View File

@@ -3,11 +3,13 @@
#include <dc/apisync.h>
#include <dc/account.h>
#include <dc/guild.h>
#include <stdbool.h>
#include <jansson.h>
#include <event.h>
#include <glib.h>
struct dc_api_;
typedef struct dc_api_ *dc_api_t;
@@ -48,7 +50,11 @@ bool dc_api_authenticate(dc_api_t api, dc_account_t account);
bool dc_api_get_userinfo(dc_api_t api, dc_account_t login,
dc_account_t user);
/**
* Fetch a list of guilds fro the specified login user. Warning if you
* unref the pointer array, you will also unref all the dc_guild_t objects.
*/
bool dc_api_get_userguilds(dc_api_t api, dc_account_t login,
GPtrArray *guilds);
GPtrArray **guilds);
#endif