Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/jabber.c @ 25585:45816181b7de
* fixing a bug in jabber_caps_compare()
* preparing contact capabilities lookup functionality
author | Tobias Markmann <tfar@soc.pidgin.im> |
---|---|
date | Sun, 06 Jul 2008 18:51:26 +0000 |
parents | 26eabe8e739b |
children | e6f92c0f9770 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c Sat Jul 05 09:22:59 2008 +0000 +++ b/libpurple/protocols/jabber/jabber.c Sun Jul 06 18:51:26 2008 +0000 @@ -39,6 +39,7 @@ #include "version.h" #include "xmlnode.h" +#include "caps.h" #include "auth.h" #include "buddy.h" #include "chat.h" @@ -2445,6 +2446,20 @@ _("buzz: Buzz a user to get their attention"), NULL); } +static void +jabber_client_info_destroy_key(gpointer key) { + gchar *s = key; + g_free(s); +} + +static gboolean +jabber_client_info_compare(gconstpointer v1, gconstpointer v2) { + const gchar *name1 = v1; + const gchar *name2 = v2; + + return strcmp(name1,name2) == 0; +} + void jabber_init_plugin(PurplePlugin *plugin) { @@ -2471,4 +2486,6 @@ jabber_add_feature("http://jabber.org/protocol/si/profile/file-transfer", 0); jabber_add_feature("http://jabber.org/protocol/xhtml-im", 0); jabber_add_feature("urn:xmpp:ping", 0); + + //jabber_contact_info = g_hash_table_new_full(g_str_hash, jabber_client_info_compare, jabber_client_info_destroy_key, jabber_caps_destroy_key); }