Mercurial > pidgin
comparison libpurple/protocols/jabber/libxmpp.c @ 24058:305fac6af8f9
Updated to use latest spec. in XEP-0231
New namespace. Cache data globally in a running instance based on CID.
Set the PNG compression level param when saving a custom smiley from
GTKIMHTML.
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Fri, 05 Sep 2008 21:55:09 +0000 |
parents | 1de1494a13e5 |
children | fba7c73c8f02 |
comparison
equal
deleted
inserted
replaced
24057:8997acd7d143 | 24058:305fac6af8f9 |
---|---|
136 purple_signal_register(plugin, "jabber-sending-text", | 136 purple_signal_register(plugin, "jabber-sending-text", |
137 purple_marshal_VOID__POINTER_POINTER, NULL, 2, | 137 purple_marshal_VOID__POINTER_POINTER, NULL, 2, |
138 purple_value_new(PURPLE_TYPE_SUBTYPE, PURPLE_SUBTYPE_CONNECTION), | 138 purple_value_new(PURPLE_TYPE_SUBTYPE, PURPLE_SUBTYPE_CONNECTION), |
139 purple_value_new_outgoing(PURPLE_TYPE_STRING)); | 139 purple_value_new_outgoing(PURPLE_TYPE_STRING)); |
140 | 140 |
141 | 141 jabber_data_uninit(); |
142 | |
142 return TRUE; | 143 return TRUE; |
143 } | 144 } |
144 | 145 |
145 static gboolean unload_plugin(PurplePlugin *plugin) | 146 static gboolean unload_plugin(PurplePlugin *plugin) |
146 { | 147 { |
275 jabber_iq_init(); | 276 jabber_iq_init(); |
276 jabber_pep_init(); | 277 jabber_pep_init(); |
277 | 278 |
278 jabber_tune_init(); | 279 jabber_tune_init(); |
279 jabber_caps_init(); | 280 jabber_caps_init(); |
281 | |
280 jabber_data_init(); | 282 jabber_data_init(); |
281 | 283 |
282 jabber_add_feature("avatarmeta", AVATARNAMESPACEMETA, jabber_pep_namespace_only_when_pep_enabled_cb); | 284 jabber_add_feature("avatarmeta", AVATARNAMESPACEMETA, jabber_pep_namespace_only_when_pep_enabled_cb); |
283 jabber_add_feature("avatardata", AVATARNAMESPACEDATA, jabber_pep_namespace_only_when_pep_enabled_cb); | 285 jabber_add_feature("avatardata", AVATARNAMESPACEDATA, jabber_pep_namespace_only_when_pep_enabled_cb); |
284 jabber_add_feature("buzz", "http://www.xmpp.org/extensions/xep-0224.html#ns", | 286 jabber_add_feature("buzz", "http://www.xmpp.org/extensions/xep-0224.html#ns", |
285 jabber_buzz_isenabled); | 287 jabber_buzz_isenabled); |
286 /* this string will need to be updated when XEP-0231 turns "draft" */ | 288 jabber_add_feature("bob", XEP_0231_NAMESPACE, |
287 jabber_add_feature("smileys", XEP_0231_IB_IMAGE_NAMESPACE, | |
288 jabber_custom_smileys_isenabled); | 289 jabber_custom_smileys_isenabled); |
289 | 290 |
290 jabber_pep_register_handler("avatar", AVATARNAMESPACEMETA, jabber_buddy_avatar_update_metadata); | 291 jabber_pep_register_handler("avatar", AVATARNAMESPACEMETA, jabber_buddy_avatar_update_metadata); |
291 } | 292 } |
292 | 293 |