about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-06-02 20:20:44 +0100
committerJames Booth <boothj5@gmail.com>2013-06-02 20:20:44 +0100
commit6082ab8778fb3147081a3b4a9a0c929069a69b73 (patch)
tree027605f5adc8dfe103c8f0739572c287d46c5754 /src/xmpp
parentb89a7519033a63015639524cfdde1add7b753553 (diff)
downloadprofani-tty-6082ab8778fb3147081a3b4a9a0c929069a69b73.tar.gz
Implemented /group command with no args (list groups)
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/roster.c6
-rw-r--r--src/xmpp/xmpp.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/xmpp/roster.c b/src/xmpp/roster.c
index c6039ed2..8e8dc328 100644
--- a/src/xmpp/roster.c
+++ b/src/xmpp/roster.c
@@ -379,6 +379,12 @@ roster_get_contacts(void)
 }
 
 GSList *
+roster_get_groups(void)
+{
+    return autocomplete_get_list(groups_ac);
+}
+
+GSList *
 roster_get_group(const char * const group)
 {
     GSList *result = NULL;
diff --git a/src/xmpp/xmpp.h b/src/xmpp/xmpp.h
index 50518dba..61f07e5e 100644
--- a/src/xmpp/xmpp.h
+++ b/src/xmpp/xmpp.h
@@ -151,5 +151,6 @@ GSList * roster_get_group(const char * const group);
 void roster_add_to_group(const char * const group, const char * const barejid);
 void roster_remove_from_group(const char * const group,
     const char * const barejid);
+GSList * roster_get_groups(void);
 
 #endif