comparison libpurple/account.h @ 18696:be3f8906eae7

propagate from branch 'im.pidgin.pidgin' (head 01d1a63fe1ad7ad2f78ff88c6540afd927693362) to branch 'im.pidgin.soc.2007.xmpp' (head 292d3a42ec5f8d925097e901ded4644e4fb30807)
author Andreas Monitzer <pidgin@monitzer.com>
date Mon, 16 Jul 2007 14:53:24 +0000
parents 5c1ed6296b56
children 033b128f7c21
comparison
equal deleted inserted replaced
18542:84d184163805 18696:be3f8906eae7
34 typedef struct _PurpleAccountUiOps PurpleAccountUiOps; 34 typedef struct _PurpleAccountUiOps PurpleAccountUiOps;
35 typedef struct _PurpleAccount PurpleAccount; 35 typedef struct _PurpleAccount PurpleAccount;
36 36
37 typedef gboolean (*PurpleFilterAccountFunc)(PurpleAccount *account); 37 typedef gboolean (*PurpleFilterAccountFunc)(PurpleAccount *account);
38 typedef void (*PurpleAccountRequestAuthorizationCb)(void *); 38 typedef void (*PurpleAccountRequestAuthorizationCb)(void *);
39 typedef void (*PurpleAccountRegistrationCb)(PurpleAccount *account, gboolean succeeded, void *user_data);
39 40
40 #include "connection.h" 41 #include "connection.h"
41 #include "log.h" 42 #include "log.h"
42 #include "proxy.h" 43 #include "proxy.h"
43 #include "prpl.h" 44 #include "prpl.h"
104 105
105 PurplePresence *presence; /**< Presence. */ 106 PurplePresence *presence; /**< Presence. */
106 PurpleLog *system_log; /**< The system log */ 107 PurpleLog *system_log; /**< The system log */
107 108
108 void *ui_data; /**< The UI can put data here. */ 109 void *ui_data; /**< The UI can put data here. */
110 PurpleAccountRegistrationCb registration_cb;
111 void *registration_cb_user_data;
109 }; 112 };
110 113
111 #ifdef __cplusplus 114 #ifdef __cplusplus
112 extern "C" { 115 extern "C" {
113 #endif 116 #endif
138 * Connects to an account. 141 * Connects to an account.
139 * 142 *
140 * @param account The account to connect to. 143 * @param account The account to connect to.
141 */ 144 */
142 void purple_account_connect(PurpleAccount *account); 145 void purple_account_connect(PurpleAccount *account);
146
147 /**
148 * Sets the callback for successful registration.
149 *
150 * @param account The account for which this callback should be used
151 * @param cb The callback
152 * @param user_data The user data passed to the callback
153 */
154 void purple_account_set_register_callback(PurpleAccount *account, PurpleAccountRegistrationCb cb, void *user_data);
143 155
144 /** 156 /**
145 * Registers an account. 157 * Registers an account.
146 * 158 *
147 * @param account The account to register. 159 * @param account The account to register.