comparison libpurple/connection.h @ 21300:abbf74f4732b

propagate from branch 'im.pidgin.pidgin' (head e3fd21e6dabb99e5604e8337380353fcbe1a7279) to branch 'im.pidgin.elb.make' (head 7422b9a549f752c05cc75f0c8e56fdd2bced034a)
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 10 Nov 2007 16:17:54 +0000
parents d8990c20cbee
children e747ac0c42d6
comparison
equal deleted inserted replaced
21132:f2dcad9572b2 21300:abbf74f4732b
148 /**************************************************************************/ 148 /**************************************************************************/
149 /** @name Connection API */ 149 /** @name Connection API */
150 /**************************************************************************/ 150 /**************************************************************************/
151 /*@{*/ 151 /*@{*/
152 152
153 #ifndef PURPLE_DISABLE_DEPRECATED
153 /** 154 /**
154 * This function should only be called by purple_account_connect() 155 * This function should only be called by purple_account_connect()
155 * in account.c. If you're trying to sign on an account, use that 156 * in account.c. If you're trying to sign on an account, use that
156 * function instead. 157 * function instead.
157 * 158 *
164 * 165 *
165 * @param account The account the connection should be connecting to. 166 * @param account The account the connection should be connecting to.
166 * @param regist Whether we are registering a new account or just 167 * @param regist Whether we are registering a new account or just
167 * trying to do a normal signon. 168 * trying to do a normal signon.
168 * @param password The password to use. 169 * @param password The password to use.
170 *
171 * @deprecated As this is internal, we should make it private in 3.0.0.
169 */ 172 */
170 void purple_connection_new(PurpleAccount *account, gboolean regist, 173 void purple_connection_new(PurpleAccount *account, gboolean regist,
171 const char *password); 174 const char *password);
172 175 #endif
176
177 #ifndef PURPLE_DISABLE_DEPRECATED
173 /** 178 /**
174 * This function should only be called by purple_account_unregister() 179 * This function should only be called by purple_account_unregister()
175 * in account.c. 180 * in account.c.
176 * 181 *
177 * Tries to unregister the account on the server. If the account is not 182 * Tries to unregister the account on the server. If the account is not
178 * connected, also creates a new connection. 183 * connected, also creates a new connection.
179 * 184 *
180 * @param account The account to unregister 185 * @param account The account to unregister
181 * @param password The password to use. 186 * @param password The password to use.
187 * @param cb Optional callback to be called when unregistration is complete
188 * @param user_data user data to pass to the callback
189 *
190 * @deprecated As this is internal, we should make it private in 3.0.0.
182 */ 191 */
183 void purple_connection_new_unregister(PurpleAccount *account, const char *password, PurpleAccountUnregistrationCb cb, void *user_data); 192 void purple_connection_new_unregister(PurpleAccount *account, const char *password, PurpleAccountUnregistrationCb cb, void *user_data);
184 193 #endif
194
195 #ifndef PURPLE_DISABLE_DEPRECATED
185 /** 196 /**
186 * Disconnects and destroys a PurpleConnection. 197 * Disconnects and destroys a PurpleConnection.
187 * 198 *
188 * This function should only be called by purple_account_disconnect() 199 * This function should only be called by purple_account_disconnect()
189 * in account.c. If you're trying to sign off an account, use that 200 * in account.c. If you're trying to sign off an account, use that
190 * function instead. 201 * function instead.
191 * 202 *
192 * @param gc The purple connection to destroy. 203 * @param gc The purple connection to destroy.
204 *
205 * @deprecated As this is internal, we should make it private in 3.0.0.
193 */ 206 */
194 void purple_connection_destroy(PurpleConnection *gc); 207 void purple_connection_destroy(PurpleConnection *gc);
208 #endif
195 209
196 /** 210 /**
197 * Sets the connection state. PRPLs should call this and pass in 211 * Sets the connection state. PRPLs should call this and pass in
198 * the state "PURPLE_CONNECTED" when the account is completely 212 * the state "PURPLE_CONNECTED" when the account is completely
199 * signed on. What does it mean to be completely signed on? If 213 * signed on. What does it mean to be completely signed on? If