im.pidgin.pidgin.next.minor: 72e9052f6df6e0b426cb94a1e5f949a98b89e49b

rlaager at pidgin.im rlaager at pidgin.im
Sun Oct 14 15:56:04 EDT 2007


-----------------------------------------------------------------
Revision: 72e9052f6df6e0b426cb94a1e5f949a98b89e49b
Ancestor: 3588a68b11327f068eea391242fa5896bb72f8dd
Author: rlaager at pidgin.im
Date: 2007-10-14T19:46:19
Branch: im.pidgin.pidgin.next.minor

Modified files:
        libpurple/connection.h

ChangeLog: 

Mark some libpurple-internal functions as deprecated to further help keep
plugin authors from using them.  For 3.0.0, we need to modify these to make
them private for real.

-------------- next part --------------
============================================================
--- libpurple/connection.h	e635841597c59c2048ed458bb581103cc0d57a58
+++ libpurple/connection.h	c54b125380a22a60e0c33e436b1cae7f6fb1c1f7
@@ -150,6 +150,7 @@ extern "C" {
 /**************************************************************************/
 /*@{*/
 
+#ifndef PURPLE_DISABLE_DEPRECATED
 /**
  * This function should only be called by purple_account_connect()
  * in account.c.  If you're trying to sign on an account, use that
@@ -166,10 +167,14 @@ extern "C" {
  * @param regist   Whether we are registering a new account or just
  *                 trying to do a normal signon.
  * @param password The password to use.
+ *
+ * @deprecated As this is internal, we should make it private in 3.0.0.
  */
 void purple_connection_new(PurpleAccount *account, gboolean regist,
 									const char *password);
+#endif
 
+#ifndef PURPLE_DISABLE_DEPRECATED
 /**
  * This function should only be called by purple_account_unregister()
  * in account.c.
@@ -179,9 +184,15 @@ void purple_connection_new(PurpleAccount
  *
  * @param account  The account to unregister
  * @param password The password to use.
+ * @param cb Optional callback to be called when unregistration is complete
+ * @param user_data user data to pass to the callback
+ *
+ * @deprecated As this is internal, we should make it private in 3.0.0.
  */
 void purple_connection_new_unregister(PurpleAccount *account, const char *password, PurpleAccountUnregistrationCb cb, void *user_data);
+#endif
 
+#ifndef PURPLE_DISABLE_DEPRECATED
 /**
  * Disconnects and destroys a PurpleConnection.
  *
@@ -190,8 +201,11 @@ void purple_connection_new_unregister(Pu
  * function instead.
  *
  * @param gc The purple connection to destroy.
+ *
+ * @deprecated As this is internal, we should make it private in 3.0.0.
  */
 void purple_connection_destroy(PurpleConnection *gc);
+#endif
 
 /**
  * Sets the connection state.  PRPLs should call this and pass in


More information about the Commits mailing list