Exemple #1
0
GSList*
roster_get_groups(void)
{
    assert(roster != NULL);

    return autocomplete_create_list(roster->groups_ac);
}
Exemple #2
0
gboolean
muc_invites_contain(const char * const room)
{
    GSList *invites = autocomplete_create_list(invite_ac);
    GSList *curr = invites;
    while (curr) {
        if (strcmp(curr->data, room) == 0) {
            g_slist_free_full(invites, g_free);
            return TRUE;
        } else {
            curr = g_slist_next(curr);
        }
    }
    g_slist_free_full(invites, g_free);

    return FALSE;
}
Exemple #3
0
gboolean
presence_sub_request_exists(const char *const bare_jid)
{
    gboolean result = FALSE;

    GList *requests = autocomplete_create_list(sub_requests_ac);
    GList *curr = requests;
    while (curr) {
        if (strcmp(curr->data, bare_jid) == 0) {
            result = TRUE;
            break;
        }
        curr = g_list_next(curr);
    }
    g_list_free_full(requests, free);

    return result;
}
Exemple #4
0
GSList *
roster_get_groups(void)
{
    return autocomplete_create_list(groups_ac);
}
Exemple #5
0
GSList *
muc_invites(void)
{
    return autocomplete_create_list(invite_ac);
}
Exemple #6
0
GList*
presence_get_subscription_requests(void)
{
    return autocomplete_create_list(sub_requests_ac);
}