Mercurial > pidgin.yaz
comparison libpurple/connection.c @ 32674:2571b01e849c
The following were deprecated since they were moved to the internal API:
purple_connection_new
purple_connection_new_unregister
purple_connection_destroy
Remove the public interface.
author | andrew.victor@mxit.com |
---|---|
date | Sat, 24 Sep 2011 17:04:09 +0000 |
parents | a5b556ac1de5 |
children | f75041cb3fec |
comparison
equal
deleted
inserted
replaced
32673:1bcedeb32bb4 | 32674:2571b01e849c |
---|---|
90 gc->keepalive = 0; | 90 gc->keepalive = 0; |
91 } | 91 } |
92 } | 92 } |
93 | 93 |
94 void | 94 void |
95 purple_connection_new(PurpleAccount *account, gboolean regist, const char *password) | |
96 { | |
97 _purple_connection_new(account, regist, password); | |
98 } | |
99 | |
100 void | |
101 _purple_connection_new(PurpleAccount *account, gboolean regist, const char *password) | 95 _purple_connection_new(PurpleAccount *account, gboolean regist, const char *password) |
102 { | 96 { |
103 PurpleConnection *gc; | 97 PurpleConnection *gc; |
104 PurplePlugin *prpl; | 98 PurplePlugin *prpl; |
105 PurplePluginProtocolInfo *prpl_info; | 99 PurplePluginProtocolInfo *prpl_info; |
169 | 163 |
170 purple_signal_emit(purple_accounts_get_handle(), "account-connecting", account); | 164 purple_signal_emit(purple_accounts_get_handle(), "account-connecting", account); |
171 prpl_info->login(account); | 165 prpl_info->login(account); |
172 } | 166 } |
173 } | 167 } |
174 void | |
175 purple_connection_new_unregister(PurpleAccount *account, const char *password, PurpleAccountUnregistrationCb cb, void *user_data) | |
176 { | |
177 _purple_connection_new_unregister(account, password, cb, user_data); | |
178 } | |
179 | 168 |
180 void | 169 void |
181 _purple_connection_new_unregister(PurpleAccount *account, const char *password, PurpleAccountUnregistrationCb cb, void *user_data) | 170 _purple_connection_new_unregister(PurpleAccount *account, const char *password, PurpleAccountUnregistrationCb cb, void *user_data) |
182 { | 171 { |
183 /* Lots of copy/pasted code to avoid API changes. You might want to integrate that into the previous function when posssible. */ | 172 /* Lots of copy/pasted code to avoid API changes. You might want to integrate that into the previous function when posssible. */ |
229 purple_signal_emit(purple_connections_get_handle(), "signing-on", gc); | 218 purple_signal_emit(purple_connections_get_handle(), "signing-on", gc); |
230 | 219 |
231 purple_debug_info("connection", "Unregistering. gc = %p\n", gc); | 220 purple_debug_info("connection", "Unregistering. gc = %p\n", gc); |
232 | 221 |
233 prpl_info->unregister_user(account, cb, user_data); | 222 prpl_info->unregister_user(account, cb, user_data); |
234 } | |
235 | |
236 void | |
237 purple_connection_destroy(PurpleConnection *gc) | |
238 { | |
239 _purple_connection_destroy(gc); | |
240 } | 223 } |
241 | 224 |
242 void | 225 void |
243 _purple_connection_destroy(PurpleConnection *gc) | 226 _purple_connection_destroy(PurpleConnection *gc) |
244 { | 227 { |