Mercurial > pidgin.yaz
comparison plugins/autorecon.c @ 5587:1c55b1540e18
[gaim-migrate @ 5991]
The rest of the plugins compile. Well, the default ones.
notify.c is no longer compiled by default. I don't know for sure what we're
doing with this, but I didn't want to fix it :)
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 31 May 2003 06:59:58 +0000 |
parents | 6d1707dc8c3d |
children | eeba9205dd0f |
comparison
equal
deleted
inserted
replaced
5586:cde28f5c47d4 | 5587:1c55b1540e18 |
---|---|
17 static GHashTable *hash = NULL; | 17 static GHashTable *hash = NULL; |
18 | 18 |
19 static guint tim = 0; | 19 static guint tim = 0; |
20 | 20 |
21 static gboolean do_signon(gpointer data) { | 21 static gboolean do_signon(gpointer data) { |
22 struct gaim_account *account = data; | 22 GaimAccount *account = data; |
23 gaim_debug(GAIM_DEBUG_INFO, "autorecon", "do_signon called\n"); | 23 gaim_debug(GAIM_DEBUG_INFO, "autorecon", "do_signon called\n"); |
24 | 24 |
25 if (g_slist_index(gaim_accounts, account) < 0) | 25 if (g_slist_index(gaim_accounts, account) < 0) |
26 return FALSE; | 26 return FALSE; |
27 gaim_debug(GAIM_DEBUG_INFO, "autorecon", "calling serv_login\n"); | 27 gaim_debug(GAIM_DEBUG_INFO, "autorecon", "calling gaim_account_connect\n"); |
28 serv_login(account); | 28 gaim_account_connect(account); |
29 gaim_debug(GAIM_DEBUG_INFO, "autorecon", "done calling serv_login\n"); | 29 gaim_debug(GAIM_DEBUG_INFO, "autorecon", "done calling gaim_account_connect\n"); |
30 tim = 0; | 30 tim = 0; |
31 return FALSE; | 31 return FALSE; |
32 } | 32 } |
33 | 33 |
34 static void reconnect(struct gaim_connection *gc, void *m) { | 34 static void reconnect(GaimConnection *gc, void *m) { |
35 if (!gc->wants_to_die) { | 35 if (!gc->wants_to_die) { |
36 int del; | 36 int del; |
37 del = (int)g_hash_table_lookup(hash, gc->account); | 37 del = (int)g_hash_table_lookup(hash, gc->account); |
38 if (!del) | 38 if (!del) |
39 del = INITIAL; | 39 del = INITIAL; |