1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-02 09:26:45 +02:00

Update API

-Removed usage of deprecated API functions
-Integrated conference changes with a few regressions
This commit is contained in:
jfreegman
2018-02-25 00:00:06 -05:00
parent a290f0f7f8
commit 29f55c5277
12 changed files with 213 additions and 223 deletions

View File

@ -163,6 +163,13 @@ void prompt_update_status(ToxWindow *prompt, TOX_USER_STATUS status)
statusbar->status = status;
}
/* Returns our own connection status */
TOX_CONNECTION prompt_selfConnectionStatus(void)
{
StatusBar *statusbar = prompt->stb;
return statusbar->connection;
}
/* Adds friend request to pending friend requests.
Returns request number on success, -1 if queue is full. */
static int add_friend_request(const char *public_key, const char *data)