diff libpurple/account.h @ 16068:ac1a32ebd62c

patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
author Nathan Walp <nwalp@pidgin.im>
date Sun, 15 Apr 2007 00:14:34 +0000
parents b449dc6b8a20
children 36b09c6f7957
line wrap: on
line diff
--- a/libpurple/account.h	Tue Apr 10 22:23:13 2007 +0000
+++ b/libpurple/account.h	Sun Apr 15 00:14:34 2007 +0000
@@ -29,6 +29,7 @@
 
 #include <glib-object.h>
 #include <glib.h>
+#include <glib-object.h>
 
 typedef struct _PurpleAccountUiOps PurpleAccountUiOps;
 typedef struct _PurpleAccount      PurpleAccount;
@@ -223,6 +224,18 @@
 void purple_account_request_close(void *ui_handle);
 
 /**
+ * Requests a password from the user for the account. Does not set the
+ * account password on success; do that in ok_cb if desired.
+ *
+ * @param account     The account to request the password for.
+ * @param ok_cb       The callback for the OK button.
+ * @param cancel_cb   The callback for the cancel button.
+ * @param user_data   User data to be passed into callbacks.
+ */
+void purple_account_request_password(PurpleAccount *account, GCallback ok_cb,
+				     GCallback cancel_cb, void *user_data);
+
+/**
  * Requests information from the user to change the account's password.
  *
  * @param account The account to change the password on.