--- a/src/connection.h Sat May 22 22:37:33 2004 +0000 +++ b/src/connection.h Sat May 22 23:08:27 2004 +0000 @@ -190,6 +190,14 @@ GaimConnectionState gaim_connection_get_state(const GaimConnection *gc); /** + * Returns TRUE if the account is connected, otherwise returns FALSE. + * + * @return TRUE if the account is connected, otherwise returns FALSE. + */ +#define GAIM_CONNECTION_IS_CONNECTED(gc) \ + (gc->state == GAIM_CONNECTED) + +/** * Returns the connection's account. * * @param gc The connection.