예제 #1
0
파일: tox.c 프로젝트: askielboe/toxcore
/* Copies the public key associated to that friend id into client_id buffer.
 * Make sure that client_id is of size CLIENT_ID_SIZE.
 *
 *  return 0 if success.
 *  return -1 if failure.
 */
int tox_get_client_id(const Tox *tox, int32_t friendnumber, uint8_t *client_id)
{
    const Messenger *m = tox;
    return getclient_id(m, friendnumber, client_id);
}
예제 #2
0
/* Copies the public key associated to that friend id into client_id buffer.
 * Make sure that client_id is of size CLIENT_ID_SIZE.
 *
 *  return 0 if success.
 *  return -1 if failure.
 */
int tox_getclient_id(void *tox, int friend_id, uint8_t *client_id)
{
    Messenger *m = tox;
    return getclient_id(m, friend_id, client_id);
}
예제 #3
0
파일: tox.c 프로젝트: zan33/ProjectTox-Core
/* Copies the public key associated to that friend id into client_id buffer.
 * Make sure that client_id is of size CLIENT_ID_SIZE.
 *
 *  return 0 if success.
 *  return -1 if failure.
 */
int tox_get_client_id(Tox *tox, int friend_id, size_t *client_id)
{
    Messenger *m = tox;
    return getclient_id(m, friend_id, client_id);
}