Mercurial > pidgin
diff plugins/simple.c @ 94:9f6ce50ffb78
[gaim-migrate @ 104]
Woohoo, the landing of the plugins. Nearly everything necessary is here. The
only thing missing is that you can't load a plugin without signing on first
(at least, not without some trickery).
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 09 Apr 2000 11:18:25 +0000 |
parents | f3c6cf79f651 |
children | f7c6366ca703 |
line wrap: on
line diff
--- a/plugins/simple.c Sun Apr 09 08:25:15 2000 +0000 +++ b/plugins/simple.c Sun Apr 09 11:18:25 2000 +0000 @@ -1,15 +1,22 @@ +#define GAIM_PLUGINS + #include <stdio.h> +#include "gaim.h" -void gaim_plugin_init() { +static void *handle = NULL; + +void gaim_plugin_init(void *h) { printf("plugin loaded.\n"); + handle = h; } void gaim_plugin_remove() { printf("plugin unloaded.\n"); + handle = NULL; } char *name() { - return "Simple plugin"; + return "Simple Plugin Version 1.0"; } char *description() {