comparison libpurple/protocols/msn/slpcall.c @ 15822: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 acde78931954 60bc06498746
comparison
equal deleted inserted replaced
15821:84b0f9b23ede 15822:32c366eeeb99
1 /** 1 /**
2 * @file slpcall.c SLP Call Functions 2 * @file slpcall.c SLP Call 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
59 g_return_val_if_fail(slplink != NULL, NULL); 59 g_return_val_if_fail(slplink != NULL, NULL);
60 60
61 slpcall = g_new0(MsnSlpCall, 1); 61 slpcall = g_new0(MsnSlpCall, 1);
62 62
63 #ifdef MSN_DEBUG_SLPCALL 63 #ifdef MSN_DEBUG_SLPCALL
64 gaim_debug_info("msn", "slpcall_new: slpcall(%p)\n", slpcall); 64 purple_debug_info("msn", "slpcall_new: slpcall(%p)\n", slpcall);
65 #endif 65 #endif
66 66
67 slpcall->slplink = slplink; 67 slpcall->slplink = slplink;
68 68
69 msn_slplink_add_slpcall(slplink, slpcall); 69 msn_slplink_add_slpcall(slplink, slpcall);
70 70
71 slpcall->timer = gaim_timeout_add(MSN_SLPCALL_TIMEOUT, msn_slp_call_timeout, slpcall); 71 slpcall->timer = purple_timeout_add(MSN_SLPCALL_TIMEOUT, msn_slp_call_timeout, slpcall);
72 72
73 return slpcall; 73 return slpcall;
74 } 74 }
75 75
76 void 76 void
78 { 78 {
79 GList *e; 79 GList *e;
80 MsnSession *session; 80 MsnSession *session;
81 81
82 #ifdef MSN_DEBUG_SLPCALL 82 #ifdef MSN_DEBUG_SLPCALL
83 gaim_debug_info("msn", "slpcall_destroy: slpcall(%p)\n", slpcall); 83 purple_debug_info("msn", "slpcall_destroy: slpcall(%p)\n", slpcall);
84 #endif 84 #endif
85 85
86 g_return_if_fail(slpcall != NULL); 86 g_return_if_fail(slpcall != NULL);
87 87
88 if (slpcall->timer) 88 if (slpcall->timer)
89 gaim_timeout_remove(slpcall->timer); 89 purple_timeout_remove(slpcall->timer);
90 90
91 if (slpcall->id != NULL) 91 if (slpcall->id != NULL)
92 g_free(slpcall->id); 92 g_free(slpcall->id);
93 93
94 if (slpcall->branch != NULL) 94 if (slpcall->branch != NULL)
101 { 101 {
102 MsnSlpMessage *slpmsg = e->data; 102 MsnSlpMessage *slpmsg = e->data;
103 e = e->next; 103 e = e->next;
104 104
105 #ifdef MSN_DEBUG_SLPCALL_VERBOSE 105 #ifdef MSN_DEBUG_SLPCALL_VERBOSE
106 gaim_debug_info("msn", "slpcall_destroy: trying slpmsg(%p)\n", 106 purple_debug_info("msn", "slpcall_destroy: trying slpmsg(%p)\n",
107 slpmsg); 107 slpmsg);
108 #endif 108 #endif
109 109
110 if (slpmsg->slpcall == slpcall) 110 if (slpmsg->slpcall == slpcall)
111 { 111 {
204 MsnSlpCall *slpcall; 204 MsnSlpCall *slpcall;
205 205
206 slpcall = data; 206 slpcall = data;
207 207
208 #ifdef MSN_DEBUG_SLPCALL 208 #ifdef MSN_DEBUG_SLPCALL
209 gaim_debug_info("msn", "slpcall_timeout: slpcall(%p)\n", slpcall); 209 purple_debug_info("msn", "slpcall_timeout: slpcall(%p)\n", slpcall);
210 #endif 210 #endif
211 211
212 if (!slpcall->pending && !slpcall->progress) 212 if (!slpcall->pending && !slpcall->progress)
213 { 213 {
214 msn_slp_call_destroy(slpcall); 214 msn_slp_call_destroy(slpcall);
244 slpcall = msn_slplink_find_slp_call_with_session_id(slplink, slpmsg->session_id); 244 slpcall = msn_slplink_find_slp_call_with_session_id(slplink, slpmsg->session_id);
245 245
246 if (slpcall != NULL) 246 if (slpcall != NULL)
247 { 247 {
248 if (slpcall->timer) 248 if (slpcall->timer)
249 gaim_timeout_remove(slpcall->timer); 249 purple_timeout_remove(slpcall->timer);
250 250
251 slpcall->cb(slpcall, body, body_len); 251 slpcall->cb(slpcall, body, body_len);
252 252
253 slpcall->wasted = TRUE; 253 slpcall->wasted = TRUE;
254 } 254 }