XEP-0157: Print contact addresses
This commit is contained in:
@@ -837,6 +837,20 @@ cons_show_disco_items(GSList* items, const char* const jid)
|
||||
cons_alert(NULL);
|
||||
}
|
||||
|
||||
static void _cons_print_contact_information_item(gpointer key, gpointer value, gpointer userdata)
|
||||
{
|
||||
cons_show("%s: %s", (char*)key, (char*)value);
|
||||
}
|
||||
|
||||
void
|
||||
cons_show_disco_contact_information(GHashTable* addresses)
|
||||
{
|
||||
cons_show("");
|
||||
cons_show("Server contact information:");
|
||||
|
||||
g_hash_table_foreach(addresses, _cons_print_contact_information_item, NULL);
|
||||
}
|
||||
|
||||
void
|
||||
cons_show_status(const char* const barejid)
|
||||
{
|
||||
|
||||
@@ -276,6 +276,7 @@ void cons_show_bookmarks(const GList* list);
|
||||
void cons_show_bookmarks_ignore(gchar** list, gsize len);
|
||||
void cons_show_disco_items(GSList* items, const char* const jid);
|
||||
void cons_show_disco_info(const char* from, GSList* identities, GSList* features);
|
||||
void cons_show_disco_contact_information(GHashTable* addresses);
|
||||
void cons_show_room_invite(const char* const invitor, const char* const room, const char* const reason);
|
||||
void cons_check_version(gboolean not_available_msg);
|
||||
void cons_show_typing(const char* const barejid);
|
||||
|
||||
Reference in New Issue
Block a user