began work on a msg command

This commit is contained in:
2019-07-05 16:40:16 +02:00
parent e2bdd05775
commit a164afe170
16 changed files with 231 additions and 4 deletions

View File

@@ -69,11 +69,16 @@ void dc_account_set_token(dc_account_t a, char const *token);
char const *dc_account_token(dc_account_t a);
bool dc_account_has_token(dc_account_t a);
/* compare
*/
bool dc_account_equal(dc_account_t a, dc_account_t b);
/* relationships
*/
void dc_account_set_friends(dc_account_t a, dc_account_t *ptr, size_t len);
dc_account_t dc_account_nthfriend(dc_account_t a, size_t i);
size_t dc_account_friends_size(dc_account_t a);
dc_account_t dc_account_findfriend(dc_account_t a, char const *fullname);
int dc_account_friend_state(dc_account_t a);
void dc_account_set_friend_state(dc_account_t a, int state);

View File

@@ -4,6 +4,8 @@
#include <stdint.h>
#include <jansson.h>
#include <dc/account.h>
/**
* A discord channel. Exactly what it says on the tin. A place where one
* or more guardsmen can exchange Slaaneshi heresy without their commissars
@@ -50,4 +52,7 @@ dc_channel_t dc_channel_from_json(json_t *j);
dc_channel_type_t dc_channel_type(dc_channel_t c);
void dc_channel_set_type(dc_channel_t c, dc_channel_type_t t);
size_t dc_channel_recipients(dc_channel_t c);
dc_account_t dc_channel_nthrecipient(dc_channel_t c, size_t i);
#endif