src/connection.h

changeset 9019
b9a333b36763
parent 8735
01248ea222d3
child 9041
cbded2eb14d7
--- 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.

mercurial