Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/jabber.h @ 30998:53dcfcc71953
jabber: Comment the problematic behavior of jabber_add_(feature|identity)
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Mon, 20 Sep 2010 03:25:12 +0000 |
parents | 356a8d472395 |
children | 08dcd2d4f0b7 |
comparison
equal
deleted
inserted
replaced
30997:3f5ff1ea4802 | 30998:53dcfcc71953 |
---|---|
336 * @param reason where to store the disconnection reason, or @c NULL if you | 336 * @param reason where to store the disconnection reason, or @c NULL if you |
337 * don't care or you don't intend to close the connection. | 337 * don't care or you don't intend to close the connection. |
338 */ | 338 */ |
339 char *jabber_parse_error(JabberStream *js, xmlnode *packet, PurpleConnectionError *reason); | 339 char *jabber_parse_error(JabberStream *js, xmlnode *packet, PurpleConnectionError *reason); |
340 | 340 |
341 void jabber_add_feature(const gchar *namespace, JabberFeatureEnabled cb); /* cb may be NULL */ | 341 /** |
342 * Add a feature to the list of features advertised via disco#info. If you | |
343 * call this while accounts are connected, Bad Things(TM) will happen because | |
344 * the Entity Caps hash will be out-of-date (which should be fixed :/) | |
345 * | |
346 * @param namespace The namespace of the feature | |
347 * @param cb A callback determining whether or not this feature | |
348 * will advertised; may be NULL. | |
349 */ | |
350 void jabber_add_feature(const gchar *namespace, JabberFeatureEnabled cb); | |
342 void jabber_remove_feature(const gchar *namespace); | 351 void jabber_remove_feature(const gchar *namespace); |
343 | 352 |
344 /** Adds an identity to this jabber library instance. For list of valid values visit the | 353 /** Adds an identity to this jabber library instance. For list of valid values |
345 * website of the XMPP Registrar ( http://www.xmpp.org/registrar/disco-categories.html#client ). | 354 * visit the website of the XMPP Registrar |
355 * (http://www.xmpp.org/registrar/disco-categories.html#client). | |
356 * | |
357 * Like with jabber_add_feature, if you call this while accounts are connected, | |
358 * Bad Things will happen. | |
359 * | |
346 * @param category the category of the identity. | 360 * @param category the category of the identity. |
347 * @param type the type of the identity. | 361 * @param type the type of the identity. |
348 * @param language the language localization of the name. Can be NULL. | 362 * @param language the language localization of the name. Can be NULL. |
349 * @param name the name of the identity. | 363 * @param name the name of the identity. |
350 */ | 364 */ |