# HG changeset patch # User Will Thompson # Date 1192105566 0 # Node ID bc3c5daaf7aa5cc67eff13fb3b4178edd31c2ba7 # Parent 6d8708b99de199dc8c225605996d715240507786 Update report_disconnect_reason documentation to match reality. Also include a note about implementing both report_disconnect_reason and report_disconnect (mainly that there's no point). diff -r 6d8708b99de1 -r bc3c5daaf7aa libpurple/connection.h --- a/libpurple/connection.h Wed Oct 10 15:35:01 2007 +0000 +++ b/libpurple/connection.h Thu Oct 11 12:26:06 2007 +0000 @@ -187,10 +187,12 @@ */ void (*network_disconnected)(); - /** Called when a connection is disconnected, whether due to an - * error or to user request. Called before #disconnected. + /** Called when an error causes a connection to be disconnected. + * Called before #disconnected. This op is intended to replace + * #report_disconnect. If both are implemented, this will be called + * first; however, there's no real reason to implement both. * @param reason why the connection ended, if known, or - * PURPLE_REASON_OTHER_ERROR, if not. + * #PURPLE_REASON_OTHER_ERROR, if not. * @param text a localized message describing the disconnection * in more detail to the user. * @see #purple_connection_error_reason