Mercurial > pidgin.yaz
diff plugins/autorecon.c @ 3630:9682c0e022c6
[gaim-migrate @ 3753]
Yeah this will probably break a lot of shit knowing my luck. But hey, I really don't care what people thnk.
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Fri, 11 Oct 2002 03:14:01 +0000 |
parents | 837f8ff999be |
children | 9bcb42faccc0 |
line wrap: on
line diff
--- a/plugins/autorecon.c Fri Oct 11 02:10:08 2002 +0000 +++ b/plugins/autorecon.c Fri Oct 11 03:14:01 2002 +0000 @@ -2,6 +2,10 @@ #include "gaim.h" #include "prpl.h" +#ifdef _WIN32 +#include "win32dep.h" +#endif + #define INITIAL 8000 #define MAXTIME 1024000 @@ -9,14 +13,6 @@ static guint tim = 0; -char *name() { - return "Auto Reconnect"; -} - -char *description() { - return "When you are kicked offline, this reconnects you."; -} - static gboolean do_signon(gpointer data) { struct aim_user *u = data; if (g_slist_index(aim_users, u) < 0) @@ -41,7 +37,19 @@ } } -char *gaim_plugin_init(GModule *handle) { +/* + * EXPORTED FUNCTIONS + */ + +G_MODULE_EXPORT char *name() { + return "Auto Reconnect"; +} + +G_MODULE_EXPORT char *description() { + return "When you are kicked offline, this reconnects you."; +} + +G_MODULE_EXPORT char *gaim_plugin_init(GModule *handle) { hash = g_hash_table_new(g_int_hash, g_int_equal); gaim_signal_connect(handle, event_signoff, reconnect, NULL); @@ -49,7 +57,7 @@ return NULL; } -void gaim_plugin_remove() { +G_MODULE_EXPORT void gaim_plugin_remove() { if (tim) g_source_remove(tim); g_hash_table_destroy(hash);