mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-27 16:56:22 +00:00
add functions for getting roster list without offline contacts (but not implemented)
This commit is contained in:
@@ -307,6 +307,23 @@ roster_get_contacts(void)
|
||||
return result;
|
||||
}
|
||||
|
||||
GSList *
|
||||
roster_get_contacts_nooffline(void)
|
||||
{
|
||||
GSList *result = NULL;
|
||||
GHashTableIter iter;
|
||||
gpointer key;
|
||||
gpointer value;
|
||||
|
||||
g_hash_table_iter_init(&iter, contacts);
|
||||
while (g_hash_table_iter_next(&iter, &key, &value)) {
|
||||
result = g_slist_insert_sorted(result, value, (GCompareFunc)_compare_contacts);
|
||||
}
|
||||
|
||||
// resturn all contact structs
|
||||
return result;
|
||||
}
|
||||
|
||||
gboolean
|
||||
roster_has_pending_subscriptions(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user