| 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, const char *username, const char *password, 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" |
| 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. |