plugins/simple.c

Sun, 05 Jan 2003 23:21:50 +0000

author
Nathan Walp <nwalp@pidgin.im>
date
Sun, 05 Jan 2003 23:21:50 +0000
changeset 4208
e70428fed92c
parent 3565
66a8f8dcaacc
child 5205
242b8aa81328
permissions
-rw-r--r--

[gaim-migrate @ 4445]
(18:14:14) faceprint: http://faceprint.com/code/gaim/fix-tabs.20030105.1729.diff <-- fixes the tabs + incoming IM focus problem, and gives the
right-click menu for the tabs meaningful names

committer: Luke Schierer <lschiere@pidgin.im>

#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