plugins/simple.c

Mon, 10 Mar 2003 19:59:10 +0000

author
Nathan Walp <nwalp@pidgin.im>
date
Mon, 10 Mar 2003 19:59:10 +0000
changeset 4696
19ae2b8a44c7
parent 3565
66a8f8dcaacc
child 5205
242b8aa81328
permissions
-rw-r--r--

[gaim-migrate @ 5007]
buddy pounces and protocol actions work again

#define GAIM_PLUGINS

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

static GModule *handle = NULL;

char *gaim_plugin_init(GModule *h) {
	printf("plugin loaded.\n");
	handle = h;
	return NULL;
}

void gaim_plugin_remove() {
	printf("plugin unloaded.\n");
	handle = NULL;
}

struct gaim_plugin_description desc; 
struct gaim_plugin_description *gaim_plugin_desc() {
	desc.api_version = PLUGIN_API_VERSION;
	desc.name = g_strdup("Simple Plugin");
	desc.version = g_strdup("1.0");
	desc.description = g_strdup("Tests to see that most things are working.");
	desc.authors = g_strdup("Eric Warmehoven &lt;eric@warmenhoven.org>");
	desc.url = g_strdup(WEBSITE);
	return &desc;
}

char *name() {
	return "Simple Plugin Version 1.0";
}

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

mercurial