summary refs log tree commit diff stats
path: root/src/fe-gtk/banlist.h
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-03-25 16:29:26 -0700
committerTingPing <tngpng@gmail.com>2013-03-25 16:29:26 -0700
commit6ec92de598c1f18e43b0fee7cb31320a37dae7c1 (patch)
tree7eaec7fb6dab5178331733ff51edc8e1e3fc51df /src/fe-gtk/banlist.h
parenteda9303ec90d1e69c2a6321f8405d95cf80f71c0 (diff)
parenta41924d79ed3d56bb63e56eefc40f0a551763da0 (diff)
Merge pull request #474 from RichardHitt/banlist-h
Switch struct defns, to fix a seeming compiler bug
Diffstat (limited to 'src/fe-gtk/banlist.h')
-rw-r--r--src/fe-gtk/banlist.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/fe-gtk/banlist.h b/src/fe-gtk/banlist.h
index e61fd45c..130337fd 100644
--- a/src/fe-gtk/banlist.h
+++ b/src/fe-gtk/banlist.h
@@ -24,18 +24,6 @@ typedef enum banlist_modes_e {
 	MODE_CT
 } banlist_modes;
 
-typedef struct banlist_info_s banlist_info;
-
-typedef struct mode_info_s {
-	char *name;		/* Checkbox name, e.g. "Bans" */
-	char *type;		/* Type for type column, e.g. "Ban" */
-	char letter;	/* /mode-command letter, e.g. 'b' for MODE_BAN */
-	int code;		/* rfc RPL_foo code, e.g. 367 for RPL_BANLIST */
-	int endcode;	/* rfc RPL_ENDOFfoo code, e.g. 368 for RPL_ENDOFBANLIST */
-	int bit;			/* Mask bit, e.g., 1<<MODE_BAN  */
-	void (*tester)(banlist_info *, int);	/* Function returns true to set bit into checkable */
-} mode_info;
-
 typedef struct banlist_info_s {
 	session *sess;
 	int capable;	/* MODE bitmask */
@@ -55,4 +43,14 @@ typedef struct banlist_info_s {
 	GtkWidget *but_clear;
 	GtkWidget *but_refresh;
 } banlist_info;
+
+typedef struct mode_info_s {
+	char *name;		/* Checkbox name, e.g. "Bans" */
+	char *type;		/* Type for type column, e.g. "Ban" */
+	char letter;	/* /mode-command letter, e.g. 'b' for MODE_BAN */
+	int code;		/* rfc RPL_foo code, e.g. 367 for RPL_BANLIST */
+	int endcode;	/* rfc RPL_ENDOFfoo code, e.g. 368 for RPL_ENDOFBANLIST */
+	int bit;			/* Mask bit, e.g., 1<<MODE_BAN  */
+	void (*tester)(banlist_info *, int);	/* Function returns true to set bit into checkable */
+} mode_info;
 #endif /* BANLIST_H */