diff options
author | James Booth <boothj5@gmail.com> | 2013-05-21 20:50:05 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-05-21 20:50:05 +0100 |
commit | d16a31d0960d901d213428f171b7a712450a605c (patch) | |
tree | 779b343b2afadd02f667fde6bce33ac81ffdf872 /src/xmpp/roster.c | |
parent | 58bd4f2547b5752472333c4e16b9464cb7d321d4 (diff) | |
download | profani-tty-d16a31d0960d901d213428f171b7a712450a605c.tar.gz |
Renamed roster_jid_from_handle -> roster_barejid_from_handle
Diffstat (limited to 'src/xmpp/roster.c')
-rw-r--r-- | src/xmpp/roster.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/xmpp/roster.c b/src/xmpp/roster.c index 4007ee27..e45728c3 100644 --- a/src/xmpp/roster.c +++ b/src/xmpp/roster.c @@ -40,12 +40,22 @@ static int _roster_handle_set(xmpp_conn_t * const conn, static int _roster_handle_result(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza, void * const userdata); +// nicknames static Autocomplete handle_ac; + +// barejids static Autocomplete jid_ac; + +// fulljids static Autocomplete resource_ac; + +// contacts, indexed on barejid static GHashTable *contacts; + +// nickname to jid map static GHashTable *handle_to_jid; +// helper functions static gboolean _key_equals(void *key1, void *key2); static gboolean _datetimes_equal(GDateTime *dt1, GDateTime *dt2); @@ -69,7 +79,7 @@ roster_request(void) } char * -roster_jid_from_handle(const char * const handle) +roster_barejid_from_handle(const char * const handle) { return g_hash_table_lookup(handle_to_jid, handle); } |