Rename macros per the new core API.

- TOX_FRIEND_ADDRESS_SIZE -> TOX_ADDRESS_SIZE
 - TOX_CLIENT_ID_SIZE -> TOX_PUBLIC_KEY_SIZE
 - TOX_USERSTATUS(_*) -> TOX_USER_STATUS(_*)
 - TOX_FAERR_* -> TOX_ERR_FRIEND_ADD_*
This commit is contained in:
Håvard Pettersson 2015-04-09 19:01:33 +02:00
parent bf28ab37be
commit f24e15f32a
11 changed files with 62 additions and 61 deletions

View file

@ -198,8 +198,8 @@ twc_friend_request_callback(Tox *tox, const uint8_t *public_key,
}
else
{
char hex_address[TOX_CLIENT_ID_SIZE * 2 + 1];
twc_bin2hex(public_key, TOX_CLIENT_ID_SIZE, hex_address);
char hex_address[TOX_PUBLIC_KEY_SIZE * 2 + 1];
twc_bin2hex(public_key, TOX_PUBLIC_KEY_SIZE, hex_address);
weechat_printf(profile->buffer,
"%sReceived a friend request from %s with message \"%s\"; "
@ -328,7 +328,7 @@ twc_group_namelist_change_callback(Tox *tox,
char *name = twc_get_peer_name_nt(profile->tox, group_number, peer_number);
char *prev_name = NULL;
uint8_t pubkey[TOX_CLIENT_ID_SIZE];
uint8_t pubkey[TOX_PUBLIC_KEY_SIZE];
int pkrc = tox_group_peer_pubkey(profile->tox, group_number,
peer_number, pubkey);
if (pkrc == 0)
@ -353,7 +353,7 @@ twc_group_namelist_change_callback(Tox *tox,
name, NULL, NULL, NULL, 1);
if (nick)
weechat_hashtable_set_with_size(chat->nicks,
pubkey, TOX_CLIENT_ID_SIZE,
pubkey, TOX_PUBLIC_KEY_SIZE,
nick, 0);
}
}