diff options
author | James Booth <boothj5@gmail.com> | 2013-06-02 20:20:44 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-06-02 20:20:44 +0100 |
commit | 6082ab8778fb3147081a3b4a9a0c929069a69b73 (patch) | |
tree | 027605f5adc8dfe103c8f0739572c287d46c5754 /src/xmpp | |
parent | b89a7519033a63015639524cfdde1add7b753553 (diff) | |
download | profani-tty-6082ab8778fb3147081a3b4a9a0c929069a69b73.tar.gz |
Implemented /group command with no args (list groups)
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/roster.c | 6 | ||||
-rw-r--r-- | src/xmpp/xmpp.h | 1 |
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 |