comparison libpurple/prpl.h @ 29834:1fb503adb2ae

Move the mood UI for ICQ into Pidgin. It still uses the new request API stuff, which needs to be replaced. Then it needs to replace the XMPP UI.
author Richard Laager <rlaager@wiktel.com>
date Mon, 17 Nov 2008 07:30:43 +0000
parents 49850f7ca393
children 5391094529c6
comparison
equal deleted inserted replaced
29833:cdd5c6929c52 29834:1fb503adb2ae
438 * @param account The account to specify. This can be NULL. 438 * @param account The account to specify. This can be NULL.
439 * @return The protocol's string hash table. The hash table should be 439 * @return The protocol's string hash table. The hash table should be
440 * destroyed by the caller when it's no longer needed. 440 * destroyed by the caller when it's no longer needed.
441 */ 441 */
442 GHashTable *(*get_account_text_table)(PurpleAccount *account); 442 GHashTable *(*get_account_text_table)(PurpleAccount *account);
443
444 /**
445 * Returns an array of "PurpleMood"s, with the last one having
446 * "mood" set to @c NULL.
447 */
448 PurpleMood *(*get_moods)(PurpleAccount *account);
443 }; 449 };
444 450
445 #define PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(prpl, member) \ 451 #define PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(prpl, member) \
446 (((G_STRUCT_OFFSET(PurplePluginProtocolInfo, member) < G_STRUCT_OFFSET(PurplePluginProtocolInfo, struct_size)) \ 452 (((G_STRUCT_OFFSET(PurplePluginProtocolInfo, member) < G_STRUCT_OFFSET(PurplePluginProtocolInfo, struct_size)) \
447 || (G_STRUCT_OFFSET(PurplePluginProtocolInfo, member) < prpl->struct_size)) && \ 453 || (G_STRUCT_OFFSET(PurplePluginProtocolInfo, member) < prpl->struct_size)) && \