view 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 source

#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.";
}