diff 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
line wrap: on
line diff
--- a/src/prpl.h	Sun Jun 22 17:08:52 2003 +0000
+++ b/src/prpl.h	Mon Jun 23 02:00:15 2003 +0000
@@ -305,16 +305,22 @@
 	((GaimPluginProtocolInfo *)(plugin)->info->extra_info)
 
 /**
- * Compares two protocol plugins, based off their protocol plugin number.
+ * Returns the plugin ID for a protocol number.
  *
- * @param a The first protocol plugin.
- * @param b The second protocol plugin.
+ * @param protocol The protocol number.
  *
- * @return <= 1 if the first plugin's number is smaller than the second;
- *         0 if the first plugin's number is equal to the second; or
- *         >= 1 if the first plugin's number is greater than the second.
+ * @return The plugin ID for those numbers that support it.
  */
-gint gaim_prpl_compare(GaimPlugin *a, GaimPlugin *b);
+const char *gaim_prpl_num_to_id(GaimProtocol protocol);
+
+/**
+ * Returns the plugin number for a protocol ID.
+ *
+ * @param protocol_id The protocol ID.
+ *
+ * @return The protocol ID for valid protocol plugin IDs.
+ */
+GaimProtocol gaim_prpl_id_to_num(const char *id);
 
 /**
  * Finds a protocol plugin structure of the specified type.