GSList* roster_get_groups(void) { assert(roster != NULL); return autocomplete_create_list(roster->groups_ac); }
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; }
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; }
GSList * roster_get_groups(void) { return autocomplete_create_list(groups_ac); }
GSList * muc_invites(void) { return autocomplete_create_list(invite_ac); }
GList* presence_get_subscription_requests(void) { return autocomplete_create_list(sub_requests_ac); }