Mercurial > pidgin
comparison src/protocols/msn/httpmethod.c @ 9193:502707ca1836
[gaim-migrate @ 9988]
Patch by Felipe Contreras to add MSN file transfer and buddy icons. Please
test and report any bugs!
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Sun, 06 Jun 2004 02:39:08 +0000 |
| parents | c30d81b4dd22 |
| children | ab6636c5a136 |
comparison
equal
deleted
inserted
replaced
| 9192:5655dcd94d0f | 9193:502707ca1836 |
|---|---|
| 46 } MsnHttpQueueData; | 46 } MsnHttpQueueData; |
| 47 | 47 |
| 48 static gboolean | 48 static gboolean |
| 49 http_poll(gpointer data) | 49 http_poll(gpointer data) |
| 50 { | 50 { |
| 51 MsnSession *session = data; | 51 MsnSession *session; |
| 52 MsnServConn *servconn; | |
| 53 GList *l; | 52 GList *l; |
| 54 | 53 |
| 55 for (l = session->servconns; l != NULL; l = l->next) | 54 session = data; |
| 56 { | 55 |
| 57 servconn = (MsnServConn *)l->data; | 56 for (l = session->switches; l != NULL; l = l->next) |
| 58 | 57 { |
| 59 if (servconn->http_data->dirty) | 58 MsnSwitchBoard *swboard; |
| 59 | |
| 60 swboard = l->data; | |
| 61 | |
| 62 g_return_val_if_fail(swboard->servconn->http_data != NULL, FALSE); | |
| 63 | |
| 64 if (swboard->servconn->http_data->dirty) | |
| 60 { | 65 { |
| 61 #if 0 | 66 #if 0 |
| 62 gaim_debug_info("msn", "Polling server %s.\n", | 67 gaim_debug_info("msn", "Polling server %s.\n", |
| 63 servconn->http_data->gateway_host); | 68 servconn->http_data->gateway_host); |
| 64 #endif | 69 #endif |
| 65 msn_http_servconn_poll(servconn); | 70 msn_http_servconn_poll(swboard->servconn); |
| 66 } | 71 } |
| 67 } | 72 } |
| 73 | |
| 74 if (session->notification->servconn->http_data->dirty) | |
| 75 msn_http_servconn_poll(session->notification->servconn); | |
| 68 | 76 |
| 69 return TRUE; | 77 return TRUE; |
| 70 } | 78 } |
| 71 | 79 |
| 72 static void | 80 static void |
