plugins/simple.c

Sun, 09 Apr 2000 11:18:25 +0000

author
Eric Warmenhoven <warmenhoven@yahoo.com>
date
Sun, 09 Apr 2000 11:18:25 +0000
changeset 94
0c6ba3d3fa90
parent 92
b2cc29da946e
child 110
ca79cce0ea62
permissions
-rw-r--r--

[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).

#define GAIM_PLUGINS

#include <stdio.h>
#include "gaim.h"

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 Version 1.0";
}

char *description() {
	return "Tests to see that most things are working.";
}

mercurial