Exemplo n.º 1
0
/* 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);
}
Exemplo n.º 2
0
/* 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);
}