comparison libpurple/prpl.h @ 22778:1cd829a1d27e

disapproval of revision '38c3a1050aefc66e1c541e3d91ae6f7fe6930559'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 30 Apr 2008 11:27:47 +0000
parents 087c3ed328d3
children 3fee7e01e51c
comparison
equal deleted inserted replaced
22777:087c3ed328d3 22778:1cd829a1d27e
396 396
397 /* Attention API for sending & receiving zaps/nudges/buzzes etc. */ 397 /* Attention API for sending & receiving zaps/nudges/buzzes etc. */
398 gboolean (*send_attention)(PurpleConnection *gc, const char *username, guint type); 398 gboolean (*send_attention)(PurpleConnection *gc, const char *username, guint type);
399 GList *(*get_attention_types)(PurpleAccount *acct); 399 GList *(*get_attention_types)(PurpleAccount *acct);
400 400
401 /** This allows protocols to specify additional strings to be used for 401 /* This allows protocols to specify a more specific term for the "ScreenName" field
402 * various purposes. The idea is to stuff a bunch of strings in this hash 402 * in the add account window. This helps avoid confusion for users using protocols
403 * table instead of expanding the struct for every addition. This hash 403 * such as MySpace or MSN
404 * table is allocated every call and MUST be unrefed by the caller. 404 */
405 * 405 const char *(*account_login_label)(void);
406 * @param account The account to specify. This can be NULL.
407 * @return The protocol's string hash table.
408 */
409 GHashTable *(*get_account_text_table)(PurpleAccount *account);
410 }; 406 };
411 407
412 #define PURPLE_IS_PROTOCOL_PLUGIN(plugin) \ 408 #define PURPLE_IS_PROTOCOL_PLUGIN(plugin) \
413 ((plugin)->info->type == PURPLE_PLUGIN_PROTOCOL) 409 ((plugin)->info->type == PURPLE_PLUGIN_PROTOCOL)
414 410