Ejemplo n.º 1
0
/**
 * Get group chat invite with a given index.
 */
struct t_twc_group_chat_invite *
twc_group_chat_invite_with_index(struct t_twc_profile *profile, size_t index)
{
    struct t_twc_list_item *item =
        twc_list_get(profile->group_chat_invites, index);
    if (item)
        return item->group_chat_invite;
    else
        return NULL;
}
Ejemplo n.º 2
0
/**
 * Get friend request with a given index.
 */
struct t_twc_friend_request *
twc_friend_request_with_index(struct t_twc_profile *profile, int64_t index)
{
    return twc_list_get(profile->friend_requests, index)->friend_request;
}