diff src/connection.h @ 6622:a4622f1fb5a1

[gaim-migrate @ 7146] (10:10:23) Robot101: kills off OPT_CONN_* in favour of an enum, and deprecates all the IM_FLAGS_* except IM_FLAG_AWAY which is made into GAIM_IM_AUTO_RESP in a GaimImFlags enum. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 25 Aug 2003 14:12:28 +0000
parents 943b03bcecf5
children bdc448cf4cb6
line wrap: on
line diff
--- a/src/connection.h	Mon Aug 25 02:49:42 2003 +0000
+++ b/src/connection.h	Mon Aug 25 14:12:28 2003 +0000
@@ -30,9 +30,14 @@
 
 typedef struct _GaimConnection GaimConnection;
 
-#define OPT_CONN_HTML		0x00000001
-/* set this flag on a gc if you want serv_got_im to autoreply when away */
-#define OPT_CONN_AUTO_RESP	0x00000002
+/**
+ * Flags to change behavior of the client for a given connection.
+ */
+typedef enum
+{
+	GAIM_CONNECTION_HTML      = 0x0001, /**< Connection sends/receives in 'HTML'. */
+	GAIM_CONNECTION_AUTO_RESP = 0x0002  /**< Send auto responses when away.       */
+} GaimConnectionFlags;
 
 typedef enum
 {
@@ -59,7 +64,7 @@
 struct _GaimConnection
 {
 	GaimPlugin *prpl;            /**< The protocol plugin.               */
-	guint32 flags;               /**< Connection flags.                  */
+	GaimConnectionFlags flags;   /**< Connection flags.                  */
 
 	GaimConnectionState state;   /**< The connection state.              */