comparison src/prpl.h @ 5943:a4f2aba0848d

[gaim-migrate @ 6384] This should fix corruption in the blist, accounts, and pounces when some protocol plugins cannot load. Some parts of gaim now use the new unique Plugin or Protocol Plugin IDs, while some still use the old protocol numbers. Accounts kind of used both, and when prpls were missing, it had trouble finding accounts. It would find the names, even without mapping the protocol numbers to IDs, and any duplicate accounts would get nuked. That would then affect pounce saving. Anyhow, long story short (well, it's already long, too late for that), this should fix all that mess. And introduce new mess, but hopefully temporary mess. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 23 Jun 2003 02:00:15 +0000
parents 1b56a833d665
children 158196b2db19
comparison
equal deleted inserted replaced
5942:d0320de18feb 5943:a4f2aba0848d
303 303
304 #define GAIM_PLUGIN_PROTOCOL_INFO(plugin) \ 304 #define GAIM_PLUGIN_PROTOCOL_INFO(plugin) \
305 ((GaimPluginProtocolInfo *)(plugin)->info->extra_info) 305 ((GaimPluginProtocolInfo *)(plugin)->info->extra_info)
306 306
307 /** 307 /**
308 * Compares two protocol plugins, based off their protocol plugin number. 308 * Returns the plugin ID for a protocol number.
309 * 309 *
310 * @param a The first protocol plugin. 310 * @param protocol The protocol number.
311 * @param b The second protocol plugin. 311 *
312 * 312 * @return The plugin ID for those numbers that support it.
313 * @return <= 1 if the first plugin's number is smaller than the second; 313 */
314 * 0 if the first plugin's number is equal to the second; or 314 const char *gaim_prpl_num_to_id(GaimProtocol protocol);
315 * >= 1 if the first plugin's number is greater than the second. 315
316 */ 316 /**
317 gint gaim_prpl_compare(GaimPlugin *a, GaimPlugin *b); 317 * Returns the plugin number for a protocol ID.
318 *
319 * @param protocol_id The protocol ID.
320 *
321 * @return The protocol ID for valid protocol plugin IDs.
322 */
323 GaimProtocol gaim_prpl_id_to_num(const char *id);
318 324
319 /** 325 /**
320 * Finds a protocol plugin structure of the specified type. 326 * Finds a protocol plugin structure of the specified type.
321 * 327 *
322 * @param type The protocol plugin; 328 * @param type The protocol plugin;