Mercurial > pidgin.yaz
diff libpurple/prpl.h @ 23112:bb41bdce8981
Patch from Jaywalker to let prpls add some helpful text for some account
fields. This includes the update from rekkanoryo that was reverted
earlier. References #2295.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 05 May 2008 06:55:00 +0000 |
parents | 718a9c287839 |
children | d53f72735830 |
line wrap: on
line diff
--- a/libpurple/prpl.h Mon May 05 06:19:46 2008 +0000 +++ b/libpurple/prpl.h Mon May 05 06:55:00 2008 +0000 @@ -418,6 +418,17 @@ * The PURPLE_PROTOCOL_PLUGIN_HAS_FUNC macro can be used for the older member * functions (e.g. login, send_im etc.) too. */ + + /** This allows protocols to specify additional strings to be used for + * various purposes. The idea is to stuff a bunch of strings in this hash + * table instead of expanding the struct for every addition. This hash + * table is allocated every call and MUST be unrefed by the caller. + * + * @param account The account to specify. This can be NULL. + * @return The protocol's string hash table. The hash table should be + * destroyed by the caller when it's no longer needed. + */ + GHashTable *(*get_account_text_table)(PurpleAccount *account); }; #define PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(prpl, member) \