Mercurial > pidgin
comparison libpurple/connection.h @ 24350:8282911d5e17
Build everything with the *_DISABLE_DEPRECATED flags set. This allows us
to detect when we're still using deprecated functions internally (and by
extension, when we've deprecated something we shouldn't have). In the
course of developing this changeset, I fixed a few such cases.
Given that the plan is to switch from PURPLE_HIDE_STRUCTS to
PURPLE_DISABLE_DEPRECATED as each struct is fully dealt with, this will
also ensure we have no regressions on the struct hiding work.
Deprecated functions are still available to the respective .c file, to
avoid missing prototype errors. Also, Perl and DBus undef the
*_DISABLE_DEPRECATED defines as appropriate so that deprecated functions
will still be exported to Perl plugins and via DBus. (Otherwise, we'd
be breaking backwards compatibility.)
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 30 Oct 2008 22:40:49 +0000 |
parents | 85fc34efe733 |
children | d8452c0bec7b da46097b4722 d855ff9cf839 |
comparison
equal
deleted
inserted
replaced
24349:f52b94f3b6ca | 24350:8282911d5e17 |
---|---|
266 /**************************************************************************/ | 266 /**************************************************************************/ |
267 /** @name Connection API */ | 267 /** @name Connection API */ |
268 /**************************************************************************/ | 268 /**************************************************************************/ |
269 /*@{*/ | 269 /*@{*/ |
270 | 270 |
271 #ifndef PURPLE_DISABLE_DEPRECATED | 271 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_CONNECTION_C_) |
272 /** | 272 /** |
273 * This function should only be called by purple_account_connect() | 273 * This function should only be called by purple_account_connect() |
274 * in account.c. If you're trying to sign on an account, use that | 274 * in account.c. If you're trying to sign on an account, use that |
275 * function instead. | 275 * function instead. |
276 * | 276 * |
290 */ | 290 */ |
291 void purple_connection_new(PurpleAccount *account, gboolean regist, | 291 void purple_connection_new(PurpleAccount *account, gboolean regist, |
292 const char *password); | 292 const char *password); |
293 #endif | 293 #endif |
294 | 294 |
295 #ifndef PURPLE_DISABLE_DEPRECATED | 295 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_CONNECTION_C_) |
296 /** | 296 /** |
297 * This function should only be called by purple_account_unregister() | 297 * This function should only be called by purple_account_unregister() |
298 * in account.c. | 298 * in account.c. |
299 * | 299 * |
300 * Tries to unregister the account on the server. If the account is not | 300 * Tries to unregister the account on the server. If the account is not |
308 * @deprecated As this is internal, we should make it private in 3.0.0. | 308 * @deprecated As this is internal, we should make it private in 3.0.0. |
309 */ | 309 */ |
310 void purple_connection_new_unregister(PurpleAccount *account, const char *password, PurpleAccountUnregistrationCb cb, void *user_data); | 310 void purple_connection_new_unregister(PurpleAccount *account, const char *password, PurpleAccountUnregistrationCb cb, void *user_data); |
311 #endif | 311 #endif |
312 | 312 |
313 #ifndef PURPLE_DISABLE_DEPRECATED | 313 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_CONNECTION_C_) |
314 /** | 314 /** |
315 * Disconnects and destroys a PurpleConnection. | 315 * Disconnects and destroys a PurpleConnection. |
316 * | 316 * |
317 * This function should only be called by purple_account_disconnect() | 317 * This function should only be called by purple_account_disconnect() |
318 * in account.c. If you're trying to sign off an account, use that | 318 * in account.c. If you're trying to sign off an account, use that |