parse READY event to get information for session

This commit is contained in:
2019-07-10 19:04:41 +02:00
parent d10f0b1f32
commit b6cffac1d9
10 changed files with 225 additions and 23 deletions

View File

@@ -52,6 +52,19 @@ bool dc_session_has_token(dc_session_t s);
*/
dc_account_t dc_session_me(dc_session_t s);
/**
* access to the internal account cache
*/
void dc_session_add_account(dc_session_t s, dc_account_t u);
/**
* access to the internal channel cache
*/
void dc_session_add_channel(dc_session_t s, dc_channel_t u);
/**
* comparision functions for sorting, and finding
*/
bool dc_session_equal_me(dc_session_t s, dc_account_t a);
bool dc_session_equal_me_fullname(dc_session_t s, char const *a);