7 char *gaim_plugin_error(int);
9 char *gaim_plugin_init(GModule
*handle
) {
12 /* so here, we load any callbacks, do the normal stuff */
17 /* there's a 1 in 3 chance there *won't* be an error :) */
18 return gaim_plugin_error(error
);
21 void gaim_plugin_remove() {
22 /* this only gets called if we get loaded successfully, and then
26 char *gaim_plugin_error(int error
) {
27 /* by the time we've gotten here, all our callbacks are removed.
28 * we just have to deal with what the error was (as defined by us)
29 * and do any other clean-up stuff we need to do. */
34 return "Internal plugin error: exiting.";
40 struct gaim_plugin_description desc
;
41 struct gaim_plugin_description
*gaim_plugin_desc() {
42 desc
.api_version
= PLUGIN_API_VERSION
;
43 desc
.name
= g_strdup("Error Tester");
44 desc
.version
= g_strdup(VERSION
);
45 desc
.description
= g_strdup("A plugin that causes error messages.");
46 desc
.authors
= g_strdup("Eric Warmehoven <eric@warmenhoven.org>");
47 desc
.url
= g_strdup(WEBSITE
);
52 return "Error Tester " VERSION
;
56 return "A nice little program that causes error messages";