Mercurial > pidgin.yaz
comparison libpurple/connection.h @ 20893:c521b0f72a7b
Add "@since 2.3.0" annotations to the new API, as advocated by rlaager.
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Fri, 12 Oct 2007 23:22:46 +0000 |
parents | beaa1d9b5c1b |
children | 5a3242b676ad |
comparison
equal
deleted
inserted
replaced
20892:bbcc9e206c43 | 20893:c521b0f72a7b |
---|---|
52 PURPLE_CONNECTED, /**< Connected. */ | 52 PURPLE_CONNECTED, /**< Connected. */ |
53 PURPLE_CONNECTING /**< Connecting. */ | 53 PURPLE_CONNECTING /**< Connecting. */ |
54 | 54 |
55 } PurpleConnectionState; | 55 } PurpleConnectionState; |
56 | 56 |
57 /** Possible errors that can cause a connection to be closed. */ | 57 /** Possible errors that can cause a connection to be closed. |
58 * @since 2.3.0 | |
59 */ | |
58 typedef enum | 60 typedef enum |
59 { | 61 { |
60 /** There was an error sending or receiving on the network socket, or | 62 /** There was an error sending or receiving on the network socket, or |
61 * there was some protocol error (such as the server sending malformed | 63 * there was some protocol error (such as the server sending malformed |
62 * data). | 64 * data). |
193 * @param reason why the connection ended, if known, or | 195 * @param reason why the connection ended, if known, or |
194 * #PURPLE_REASON_OTHER_ERROR, if not. | 196 * #PURPLE_REASON_OTHER_ERROR, if not. |
195 * @param text a localized message describing the disconnection | 197 * @param text a localized message describing the disconnection |
196 * in more detail to the user. | 198 * in more detail to the user. |
197 * @see #purple_connection_error_reason | 199 * @see #purple_connection_error_reason |
200 * @since 2.3.0 | |
198 */ | 201 */ |
199 void (*report_disconnect_reason)(PurpleConnection *gc, | 202 void (*report_disconnect_reason)(PurpleConnection *gc, |
200 PurpleDisconnectReason reason, | 203 PurpleDisconnectReason reason, |
201 const char *text); | 204 const char *text); |
202 | 205 |
398 * error. It also sets @c gc->wants_to_die to the value of | 401 * error. It also sets @c gc->wants_to_die to the value of |
399 * #purple_connection_reason_is_fatal(@a reason). | 402 * #purple_connection_reason_is_fatal(@a reason). |
400 * | 403 * |
401 * @param reason why the connection is closing. | 404 * @param reason why the connection is closing. |
402 * @param description a localized description of the error. | 405 * @param description a localized description of the error. |
406 * @since 2.3.0 | |
403 */ | 407 */ |
404 void | 408 void |
405 purple_connection_error_reason (PurpleConnection *gc, | 409 purple_connection_error_reason (PurpleConnection *gc, |
406 PurpleDisconnectReason reason, | 410 PurpleDisconnectReason reason, |
407 const char *description); | 411 const char *description); |
408 | 412 |
409 /** | 413 /** |
410 * Closes a connection due to an SSL error; this is basically a shortcut to | 414 * Closes a connection due to an SSL error; this is basically a shortcut to |
411 * turning the #PurpleSslErrorType into a #PurpleDisconnectReason and a | 415 * turning the #PurpleSslErrorType into a #PurpleDisconnectReason and a |
412 * human-readable string and then calling purple_connection_error_reason(). | 416 * human-readable string and then calling purple_connection_error_reason(). |
417 * @since 2.3.0 | |
413 */ | 418 */ |
414 void | 419 void |
415 purple_connection_ssl_error (PurpleConnection *gc, | 420 purple_connection_ssl_error (PurpleConnection *gc, |
416 PurpleSslErrorType ssl_error); | 421 PurpleSslErrorType ssl_error); |
417 | 422 |
430 * | 435 * |
431 * (This function is meant to replace checking PurpleConnection.wants_to_die.) | 436 * (This function is meant to replace checking PurpleConnection.wants_to_die.) |
432 * | 437 * |
433 * @return @c TRUE if the account should not be automatically reconnected, and | 438 * @return @c TRUE if the account should not be automatically reconnected, and |
434 * @c FALSE otherwise. | 439 * @c FALSE otherwise. |
440 * @since 2.3.0 | |
435 */ | 441 */ |
436 gboolean | 442 gboolean |
437 purple_connection_reason_is_fatal (PurpleDisconnectReason reason); | 443 purple_connection_reason_is_fatal (PurpleDisconnectReason reason); |
438 | 444 |
439 /*@}*/ | 445 /*@}*/ |