Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/transaction.c @ 15823:32c366eeeb99
sed -ie 's/gaim/purple/g'
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 19 Mar 2007 07:01:17 +0000 |
parents | 5fe8042783c1 |
children | 44b4e8bd759b 60bc06498746 |
comparison
equal
deleted
inserted
replaced
15822:84b0f9b23ede | 15823:32c366eeeb99 |
---|---|
1 /** | 1 /** |
2 * @file transaction.c MSN transaction functions | 2 * @file transaction.c MSN transaction functions |
3 * | 3 * |
4 * gaim | 4 * purple |
5 * | 5 * |
6 * Gaim is the legal property of its developers, whose names are too numerous | 6 * Purple is the legal property of its developers, whose names are too numerous |
7 * to list here. Please refer to the COPYRIGHT file distributed with this | 7 * to list here. Please refer to the COPYRIGHT file distributed with this |
8 * source distribution. | 8 * source distribution. |
9 * | 9 * |
10 * This program is free software; you can redistribute it and/or modify | 10 * This program is free software; you can redistribute it and/or modify |
11 * it under the terms of the GNU General Public License as published by | 11 * it under the terms of the GNU General Public License as published by |
77 | 77 |
78 if (trans->callbacks != NULL && trans->has_custom_callbacks) | 78 if (trans->callbacks != NULL && trans->has_custom_callbacks) |
79 g_hash_table_destroy(trans->callbacks); | 79 g_hash_table_destroy(trans->callbacks); |
80 | 80 |
81 if (trans->timer) | 81 if (trans->timer) |
82 gaim_timeout_remove(trans->timer); | 82 purple_timeout_remove(trans->timer); |
83 | 83 |
84 g_free(trans); | 84 g_free(trans); |
85 } | 85 } |
86 | 86 |
87 char * | 87 char * |
100 } | 100 } |
101 | 101 |
102 void | 102 void |
103 msn_transaction_queue_cmd(MsnTransaction *trans, MsnCommand *cmd) | 103 msn_transaction_queue_cmd(MsnTransaction *trans, MsnCommand *cmd) |
104 { | 104 { |
105 gaim_debug_info("msn", "queueing command.\n"); | 105 purple_debug_info("msn", "queueing command.\n"); |
106 trans->pendent_cmd = cmd; | 106 trans->pendent_cmd = cmd; |
107 msn_command_ref(cmd); | 107 msn_command_ref(cmd); |
108 } | 108 } |
109 | 109 |
110 void | 110 void |
113 MsnCommand *cmd; | 113 MsnCommand *cmd; |
114 | 114 |
115 if (!cmdproc->servconn->connected) | 115 if (!cmdproc->servconn->connected) |
116 return; | 116 return; |
117 | 117 |
118 gaim_debug_info("msn", "unqueueing command.\n"); | 118 purple_debug_info("msn", "unqueueing command.\n"); |
119 cmd = trans->pendent_cmd; | 119 cmd = trans->pendent_cmd; |
120 | 120 |
121 g_return_if_fail(cmd != NULL); | 121 g_return_if_fail(cmd != NULL); |
122 | 122 |
123 msn_cmdproc_process_cmd(cmdproc, cmd); | 123 msn_cmdproc_process_cmd(cmdproc, cmd); |
191 | 191 |
192 trans = data; | 192 trans = data; |
193 g_return_val_if_fail(trans != NULL, FALSE); | 193 g_return_val_if_fail(trans != NULL, FALSE); |
194 | 194 |
195 #if 0 | 195 #if 0 |
196 gaim_debug_info("msn", "timed out: %s %d %s\n", trans->command, trans->trId, trans->params); | 196 purple_debug_info("msn", "timed out: %s %d %s\n", trans->command, trans->trId, trans->params); |
197 #endif | 197 #endif |
198 | 198 |
199 if (trans->timeout_cb != NULL) | 199 if (trans->timeout_cb != NULL) |
200 trans->timeout_cb(trans->cmdproc, trans); | 200 trans->timeout_cb(trans->cmdproc, trans); |
201 | 201 |
205 void | 205 void |
206 msn_transaction_set_timeout_cb(MsnTransaction *trans, MsnTimeoutCb cb) | 206 msn_transaction_set_timeout_cb(MsnTransaction *trans, MsnTimeoutCb cb) |
207 { | 207 { |
208 if (trans->timer) | 208 if (trans->timer) |
209 { | 209 { |
210 gaim_debug_error("msn", "This shouldn't be happening\n"); | 210 purple_debug_error("msn", "This shouldn't be happening\n"); |
211 gaim_timeout_remove(trans->timer); | 211 purple_timeout_remove(trans->timer); |
212 } | 212 } |
213 trans->timeout_cb = cb; | 213 trans->timeout_cb = cb; |
214 trans->timer = gaim_timeout_add(60000, transaction_timeout, trans); | 214 trans->timer = purple_timeout_add(60000, transaction_timeout, trans); |
215 } | 215 } |
216 | 216 |
217 void | 217 void |
218 msn_transaction_set_error_cb(MsnTransaction *trans, MsnErrorCb cb) | 218 msn_transaction_set_error_cb(MsnTransaction *trans, MsnErrorCb cb) |
219 { | 219 { |