예제 #1
0
파일: tox.c 프로젝트: askielboe/toxcore
/* Copy a list of valid chat IDs into the array out_list.
 * If out_list is NULL, returns 0.
 * Otherwise, returns the number of elements copied.
 * If the array was too small, the contents
 * of out_list will be truncated to list_size. */
uint32_t tox_get_chatlist(const Tox *tox, int *out_list, uint32_t list_size)
{
    const Messenger *m = tox;
    return copy_chatlist(m, out_list, list_size);
}
예제 #2
0
파일: tox.c 프로젝트: zan33/ProjectTox-Core
/* Copy a list of valid chat IDs into the array out_list.
 * If out_list is NULL, returns 0.
 * Otherwise, returns the number of elements copied.
 * If the array was too small, the contents
 * of out_list will be truncated to list_size. */
size_t tox_get_chatlist(Tox *tox, int *out_list, size_t list_size)
{
    Messenger *m = tox;
    return copy_chatlist(m, out_list, list_size);
}