diff libpurple/account.h @ 18920:2a9d60d7af82

Implemented a callback for unregistering, mirroring the registration callback. Since this is a new API, I can do it properly by passing it right in the unregister function call, instead of having a separate function for setting it.
author Andreas Monitzer <pidgin@monitzer.com>
date Tue, 31 Jul 2007 03:50:41 +0000
parents 033b128f7c21
children 3afcfbed2ced f821d4bffb0a
line wrap: on
line diff
--- a/libpurple/account.h	Mon Jul 30 00:05:02 2007 +0000
+++ b/libpurple/account.h	Tue Jul 31 03:50:41 2007 +0000
@@ -37,6 +37,7 @@
 typedef gboolean (*PurpleFilterAccountFunc)(PurpleAccount *account);
 typedef void (*PurpleAccountRequestAuthorizationCb)(void *);
 typedef void (*PurpleAccountRegistrationCb)(PurpleAccount *account, gboolean succeeded, void *user_data);
+typedef void (*PurpleAccountUnregistrationCb)(PurpleAccount *account, gboolean succeeded, void *user_data);
 
 #include "connection.h"
 #include "log.h"
@@ -164,8 +165,10 @@
  * Unregisters an account (deleting it from the server).
  *
  * @param account The account to unregister.
+ * @param cb Optional callback to be called when unregistration is complete
+ * @param user_data user data to pass to the callback
  */
-void purple_account_unregister(PurpleAccount *account);
+void purple_account_unregister(PurpleAccount *account, PurpleAccountUnregistrationCb cb, void *user_data);
 
 /**
  * Disconnects from an account.