Mercurial > pidgin
changeset 11963:d8787960e398
[gaim-migrate @ 14254]
Documentation
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 04 Nov 2005 01:29:58 +0000 |
parents | b634605fa7ca |
children | 5db4ae4c94a1 |
files | src/plugin.c src/plugin.h |
diffstat | 2 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugin.c Thu Nov 03 21:11:51 2005 +0000 +++ b/src/plugin.c Fri Nov 04 01:29:58 2005 +0000 @@ -57,6 +57,11 @@ static GList *plugin_loaders = NULL; #endif +/* + * TODO: I think the intention was to allow multiple load and unload + * callback functions. Perhaps using a GList instead of a + * pointer to a single function. + */ static void (*probe_cb)(void *) = NULL; static void *probe_cb_data = NULL; static void (*load_cb)(GaimPlugin *, void *) = NULL;
--- a/src/plugin.h Thu Nov 03 21:11:51 2005 +0000 +++ b/src/plugin.h Fri Nov 04 01:29:58 2005 +0000 @@ -97,10 +97,9 @@ char *author; char *homepage; - /* - * TODO: I think the intention was the allow multiple load and unload - * callback functions. Perhaps using a GList instead of a pointer to - * 1 function. + /** + * If a plugin defines a 'load' function, and it returns FALSE, + * then the plugin will not be loaded. */ gboolean (*load)(GaimPlugin *plugin); gboolean (*unload)(GaimPlugin *plugin);