comparison plugins/autorecon.c @ 5607:eeba9205dd0f

[gaim-migrate @ 6011] that win32 stuff has gotten really old committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sat, 31 May 2003 15:49:46 +0000
parents 1c55b1540e18
children 059d95c67cda
comparison
equal deleted inserted replaced
5606:328dde25685a 5607:eeba9205dd0f
6 #ifdef _WIN32 6 #ifdef _WIN32
7 #include "win32dep.h" 7 #include "win32dep.h"
8 #endif 8 #endif
9 9
10 #define AUTORECON_PLUGIN_ID "core-autorecon" 10 #define AUTORECON_PLUGIN_ID "core-autorecon"
11
12 G_MODULE_IMPORT GSList *gaim_accounts;
13 11
14 #define INITIAL 8000 12 #define INITIAL 8000
15 #define MAXTIME 2048000 13 #define MAXTIME 2048000
16 14
17 static GHashTable *hash = NULL; 15 static GHashTable *hash = NULL;
20 18
21 static gboolean do_signon(gpointer data) { 19 static gboolean do_signon(gpointer data) {
22 GaimAccount *account = data; 20 GaimAccount *account = data;
23 gaim_debug(GAIM_DEBUG_INFO, "autorecon", "do_signon called\n"); 21 gaim_debug(GAIM_DEBUG_INFO, "autorecon", "do_signon called\n");
24 22
25 if (g_slist_index(gaim_accounts, account) < 0) 23 if (g_list_index(gaim_accounts_get_all(), account) < 0)
26 return FALSE; 24 return FALSE;
27 gaim_debug(GAIM_DEBUG_INFO, "autorecon", "calling gaim_account_connect\n"); 25 gaim_debug(GAIM_DEBUG_INFO, "autorecon", "calling gaim_account_connect\n");
28 gaim_account_connect(account); 26 gaim_account_connect(account);
29 gaim_debug(GAIM_DEBUG_INFO, "autorecon", "done calling gaim_account_connect\n"); 27 gaim_debug(GAIM_DEBUG_INFO, "autorecon", "done calling gaim_account_connect\n");
30 tim = 0; 28 tim = 0;