about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/ui.h2
-rw-r--r--src/ui/windows.c19
2 files changed, 21 insertions, 0 deletions
diff --git a/src/ui/ui.h b/src/ui/ui.h
index 378cea69..14d03ef0 100644
--- a/src/ui/ui.h
+++ b/src/ui/ui.h
@@ -168,6 +168,8 @@ void cons_show_info(PContact pcontact);
 void cons_show_caps(PContact pcontact);
 void cons_show_themes(GSList *themes);
 void cons_show_login_success(ProfAccount *account);
+void cons_show_software_version(const char * const jid, const char * const name,
+    const char * const version, const char * const os);
 
 // status bar actions
 void status_bar_refresh(void);
diff --git a/src/ui/windows.c b/src/ui/windows.c
index a7bf5eec..7a34b17a 100644
--- a/src/ui/windows.c
+++ b/src/ui/windows.c
@@ -1206,6 +1206,25 @@ cons_show_caps(PContact pcontact)
 }
 
 void
+cons_show_software_version(const char * const jid, const char * const name,
+    const char * const version, const char * const os)
+{
+    if ((name != NULL) || (version != NULL) || (os != NULL)) {
+        cons_show("");
+        cons_show("%s:", jid);
+    }
+    if (name != NULL) {
+        cons_show("  Name    : %s", name);
+    }
+    if (version != NULL) {
+        cons_show("  Version : %s", version);
+    }
+    if (os != NULL) {
+        cons_show("  OS      : %s", os);
+    }
+}
+
+void
 cons_show_status(const char * const contact)
 {
     PContact pcontact = contact_list_get_contact(contact);