Mercurial > pidgin.yaz
comparison libpurple/connection.h @ 32827:4a34689eeb33 default tip
merged from im.pidgin.pidgin
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 19 Nov 2011 14:42:54 +0900 |
parents | 8c71a7e95f16 |
children |
comparison
equal
deleted
inserted
replaced
32692:0f94ec89f0bc | 32827:4a34689eeb33 |
---|---|
233 | 233 |
234 PurpleConnectionState state; /**< The connection state. */ | 234 PurpleConnectionState state; /**< The connection state. */ |
235 | 235 |
236 PurpleAccount *account; /**< The account being connected to. */ | 236 PurpleAccount *account; /**< The account being connected to. */ |
237 char *password; /**< The password used. */ | 237 char *password; /**< The password used. */ |
238 int inpa; /**< The input watcher. */ | |
239 | 238 |
240 GSList *buddy_chats; /**< A list of active chats | 239 GSList *buddy_chats; /**< A list of active chats |
241 (#PurpleConversation structs of type | 240 (#PurpleConversation structs of type |
242 #PURPLE_CONV_TYPE_CHAT). */ | 241 #PURPLE_CONV_TYPE_CHAT). */ |
243 void *proto_data; /**< Protocol-specific data. */ | 242 void *proto_data; /**< Protocol-specific data. */ |
279 * @param state The connection state. | 278 * @param state The connection state. |
280 */ | 279 */ |
281 void purple_connection_set_state(PurpleConnection *gc, PurpleConnectionState state); | 280 void purple_connection_set_state(PurpleConnection *gc, PurpleConnectionState state); |
282 | 281 |
283 /** | 282 /** |
283 * Sets the connection flags. | |
284 * | |
285 * @param gc The connection. | |
286 * @param flags The flags. | |
287 */ | |
288 void purple_connection_set_flags(PurpleConnection *gc, PurpleConnectionFlags flags); | |
289 | |
290 /** | |
284 * Sets the connection's account. | 291 * Sets the connection's account. |
285 * | 292 * |
286 * @param gc The connection. | 293 * @param gc The connection. |
287 * @param account The account. | 294 * @param account The account. |
288 */ | 295 */ |
310 * @param gc The connection. | 317 * @param gc The connection. |
311 * | 318 * |
312 * @return The connection state. | 319 * @return The connection state. |
313 */ | 320 */ |
314 PurpleConnectionState purple_connection_get_state(const PurpleConnection *gc); | 321 PurpleConnectionState purple_connection_get_state(const PurpleConnection *gc); |
322 | |
323 /** | |
324 * Returns the connection flags. | |
325 * | |
326 * @param gc The connection. | |
327 * | |
328 * @return The connection flags. | |
329 */ | |
330 PurpleConnectionFlags purple_connection_get_flags(const PurpleConnection *gc); | |
315 | 331 |
316 /** | 332 /** |
317 * Returns TRUE if the account is connected, otherwise returns FALSE. | 333 * Returns TRUE if the account is connected, otherwise returns FALSE. |
318 * | 334 * |
319 * @return TRUE if the account is connected, otherwise returns FALSE. | 335 * @return TRUE if the account is connected, otherwise returns FALSE. |
428 * @c FALSE otherwise. | 444 * @c FALSE otherwise. |
429 */ | 445 */ |
430 gboolean | 446 gboolean |
431 purple_connection_error_is_fatal (PurpleConnectionError reason); | 447 purple_connection_error_is_fatal (PurpleConnectionError reason); |
432 | 448 |
449 /** | |
450 * Indicate that a packet was received on the connection. | |
451 * Set by the prpl to avoid sending unneeded keepalives. | |
452 * | |
453 * @param gc The connection. | |
454 */ | |
455 void purple_connection_update_last_received(PurpleConnection *gc); | |
456 | |
433 /*@}*/ | 457 /*@}*/ |
434 | 458 |
435 /**************************************************************************/ | 459 /**************************************************************************/ |
436 /** @name Connections API */ | 460 /** @name Connections API */ |
437 /**************************************************************************/ | 461 /**************************************************************************/ |