Mercurial > pidgin.yaz
comparison src/prpl.c @ 7956:1b8261f374ea
[gaim-migrate @ 8631]
This is the death of protocol numbers. There are probably now a few
functions that should now go away, but i'll let our crack team of crazy
patch writers figure out which ones they are.
out-of-tree and unofficial prpl-writers, rejoice!
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 29 Dec 2003 09:03:47 +0000 |
parents | 6db061321ec4 |
children | fa6395637e2c |
comparison
equal
deleted
inserted
replaced
7955:119a22025818 | 7956:1b8261f374ea |
---|---|
76 | 76 |
77 return -1; | 77 return -1; |
78 } | 78 } |
79 | 79 |
80 GaimPlugin * | 80 GaimPlugin * |
81 gaim_find_prpl(GaimProtocol type) | 81 gaim_find_prpl(const char *id) |
82 { | 82 { |
83 GList *l; | 83 GList *l; |
84 GaimPlugin *plugin; | 84 GaimPlugin *plugin; |
85 | 85 |
86 for (l = gaim_plugins_get_protocols(); l != NULL; l = l->next) { | 86 for (l = gaim_plugins_get_protocols(); l != NULL; l = l->next) { |
87 plugin = (GaimPlugin *)l->data; | 87 plugin = (GaimPlugin *)l->data; |
88 | 88 |
89 /* Just In Case (TM) */ | 89 /* Just In Case (TM) */ |
90 if (GAIM_IS_PROTOCOL_PLUGIN(plugin)) { | 90 if (GAIM_IS_PROTOCOL_PLUGIN(plugin)) { |
91 | 91 |
92 if (GAIM_PLUGIN_PROTOCOL_INFO(plugin)->protocol == type) | 92 if (!strcmp(plugin->info->id, id)) |
93 return plugin; | 93 return plugin; |
94 } | 94 } |
95 } | 95 } |
96 | 96 |
97 return NULL; | 97 return NULL; |