comparison 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
comparison
equal deleted inserted replaced
93:5ca21b68eb29 94:9f6ce50ffb78
1 #define GAIM_PLUGINS
2
1 #include <stdio.h> 3 #include <stdio.h>
4 #include "gaim.h"
2 5
3 void gaim_plugin_init() { 6 static void *handle = NULL;
7
8 void gaim_plugin_init(void *h) {
4 printf("plugin loaded.\n"); 9 printf("plugin loaded.\n");
10 handle = h;
5 } 11 }
6 12
7 void gaim_plugin_remove() { 13 void gaim_plugin_remove() {
8 printf("plugin unloaded.\n"); 14 printf("plugin unloaded.\n");
15 handle = NULL;
9 } 16 }
10 17
11 char *name() { 18 char *name() {
12 return "Simple plugin"; 19 return "Simple Plugin Version 1.0";
13 } 20 }
14 21
15 char *description() { 22 char *description() {
16 return "Tests to see that most things are working."; 23 return "Tests to see that most things are working.";
17 } 24 }