comparison libpurple/protocols/jabber/pep.c @ 25351:5dd25c58b65e

Migrate the XMPP User Avatar (XEP-0084) code to its own file I also slightly rearranged the ordering of jabber_avatar_set to make the error cases slightly more apparent.
author Paul Aurich <paul@darkrain42.org>
date Wed, 21 Jan 2009 17:55:09 +0000
parents 4caae7801f4d
children 7e020fbe2cdb
comparison
equal deleted inserted replaced
25350:7f9b8351a6b4 25351:5dd25c58b65e
22 #include "internal.h" 22 #include "internal.h"
23 23
24 #include "pep.h" 24 #include "pep.h"
25 #include "iq.h" 25 #include "iq.h"
26 #include <string.h> 26 #include <string.h>
27 #include "useravatar.h"
27 #include "usermood.h" 28 #include "usermood.h"
28 #include "usernick.h" 29 #include "usernick.h"
29 30
30 static GHashTable *pep_handlers = NULL; 31 static GHashTable *pep_handlers = NULL;
31 32
32 void jabber_pep_init(void) { 33 void jabber_pep_init(void) {
33 if(!pep_handlers) { 34 if(!pep_handlers) {
34 pep_handlers = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL); 35 pep_handlers = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);
35 36
36 /* register PEP handlers */ 37 /* register PEP handlers */
38 jabber_avatar_init();
37 jabber_mood_init(); 39 jabber_mood_init();
38 jabber_nick_init(); 40 jabber_nick_init();
39 } 41 }
40 } 42 }
41 43