summaryrefslogtreecommitdiff
path: root/libpurple/account.h
diff options
context:
space:
mode:
authorNathan Walp <nwalp@pidgin.im>2007-04-15 00:14:34 +0000
committerNathan Walp <nwalp@pidgin.im>2007-04-15 00:14:34 +0000
commit147b0411db52a3738bcc327def00314f7fcaadd0 (patch)
tree5d0497252fed317f845367a8116379ee95b6970b /libpurple/account.h
parentfbb3bbe82de68919217c2f84055d7e9740336f25 (diff)
downloadpidgin-147b0411db52a3738bcc327def00314f7fcaadd0.tar.gz
patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
Diffstat (limited to 'libpurple/account.h')
-rw-r--r--libpurple/account.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libpurple/account.h b/libpurple/account.h
index d1ba3c0f12..9b349fa280 100644
--- a/libpurple/account.h
+++ b/libpurple/account.h
@@ -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_with_account(PurpleAccount *account);
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.