Handle roster subscription updates

This commit is contained in:
James Booth
2012-11-27 23:43:32 +00:00
parent 2f2fa8de66
commit a061b0d452
7 changed files with 122 additions and 18 deletions

View File

@@ -96,6 +96,20 @@ contact_list_update_contact(const char * const jid, const char * const presence,
return changed;
}
void
contact_list_update_subscription(const char * const jid,
const char * const subscription, gboolean pending_out)
{
PContact contact = g_hash_table_lookup(contacts, jid);
if (contact == NULL) {
return;
} else {
p_contact_set_subscription(contact, subscription);
p_contact_set_pending_out(contact, pending_out);
}
}
GSList *
get_contact_list(void)
{