# HG changeset patch # User Will Thompson # Date 1192396850 0 # Node ID fe57b80622498ba3cd5e4b8fb4b17b1ba9936a37 # Parent ba41f2a602535d93cc79de675fd11b5d4ce81463 Document that the char * parameter of purple_connection_error{,_reason} may not be NULL. Also tidy up some other documentation formatting. diff -r ba41f2a60253 -r fe57b8062249 libpurple/connection.h --- a/libpurple/connection.h Sun Oct 14 21:08:42 2007 +0000 +++ b/libpurple/connection.h Sun Oct 14 21:20:50 2007 +0000 @@ -387,7 +387,7 @@ * Closes a connection with an error. * * @param gc The connection. - * @param reason The error text. + * @param reason The error text, which may not be @c NULL. * @deprecated in favour of #purple_connection_error_reason. Calling * @c purple_connection_error(gc, text) is equivalent to calling * @c purple_connection_error_reason(gc, reason, text) where @c reason is @@ -399,12 +399,12 @@ void purple_connection_error(PurpleConnection *gc, const char *reason); /** - * Closes a connection with an error and an optional description of the + * Closes a connection with an error and a human-readable description of the * error. It also sets @c gc->wants_to_die to the value of * #purple_connection_error_is_fatal(@a reason). * * @param reason why the connection is closing. - * @param description a localized description of the error. + * @param description a non-@c NULL localized description of the error. * @since 2.3.0 */ void @@ -426,14 +426,14 @@ * Reports whether a disconnection reason is fatal (in which case the account * should probably not be automatically reconnected) or transient (so * auto-reconnection is a good idea). - * For instance, #PURPLE_CONNECTION_ERROR_NETWORK_ERROR is a temporary - * error, which might be caused by losing the network connection, so - * @c purple_connection_error_is_fatal - * (@c PURPLE_CONNECTION_ERROR_NETWORK_ERROR) is @c FALSE. On the other hand, + * For instance, #PURPLE_CONNECTION_ERROR_NETWORK_ERROR is a temporary error, + * which might be caused by losing the network connection, so + * purple_connection_error_is_fatal (PURPLE_CONNECTION_ERROR_NETWORK_ERROR) + * is @c FALSE. On the other hand, * #PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED probably indicates a * misconfiguration of the account which needs the user to go fix it up, so - * @c purple_connection_error_is_fatal - * (@c PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED) is @c TRUE. + * purple_connection_error_is_fatal + * (PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED) is @c TRUE. * * (This function is meant to replace checking PurpleConnection.wants_to_die.) *