[gnome-mud] gnome-mud.h cruft removal patch
- From: Daniel Patton <seven-nation army com>
- To: gnome-mud-list gnome org
- Subject: [gnome-mud] gnome-mud.h cruft removal patch
- Date: Thu, 09 Feb 2006 11:28:39 +1100
Hey hey,
The attached patch clears out a whole lot of old stuff from
gnome-mud.h.
Regards,
Daniel.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gnome-mud/ChangeLog,v
retrieving revision 1.369
diff -u -r1.369 ChangeLog
--- ChangeLog 4 Feb 2006 15:57:13 -0000 1.369
+++ ChangeLog 9 Feb 2006 00:25:17 -0000
@@ -1,3 +1,7 @@
+2006-02-08 Daniel Patton <seven-nation army com>
+
+ * src/gnome-mud.h: Removed a whole heap of cruft.
+
2006-02-03 Daniel Patton <seven-nation army com>
* src/mud-window.c (mud_window_textentry_activate): Added code to
Index: src/gnome-mud.h
===================================================================
RCS file: /cvs/gnome/gnome-mud/src/gnome-mud.h,v
retrieving revision 1.45
diff -u -r1.45 gnome-mud.h
--- src/gnome-mud.h 11 Jan 2006 00:43:27 -0000 1.45
+++ src/gnome-mud.h 9 Feb 2006 00:25:17 -0000
@@ -43,173 +43,9 @@
#define MESSAGE_SYSTEM 3
/*
- * Different location of the connection tabs
- */
-#define TAB_LOCATION_TOP 0
-#define TAB_LOCATION_RIGHT 1
-#define TAB_LOCATION_BOTTOM 2
-#define TAB_LOCATION_LEFT 3
-
-/*
- * Maximum number of connections possible
- */
-#define MAX_CONNECTIONS 16
-
-/*
* Maximum number of colors
*/
#define C_MAX 16
-/*
- * Save file version
- */
-#define WIZARD_SAVEFILE_VERSION 1
-
-/*
- * Typedefs
- */
-typedef struct connection_data CONNECTION_DATA;
-typedef struct wizard_data2 WIZARD_DATA2;
-typedef struct system_data SYSTEM_DATA;
-typedef struct keybind_data KEYBIND_DATA;
-typedef struct profile_data PROFILE_DATA;
-#ifdef ENABLE_MAPPER
- typedef struct _AutoMap AutoMap;
- typedef struct _AutoMapConfig AutoMapConfig;
-#endif
-typedef gint bool;
-
-/*
- * Structures
- */
-struct connection_data
-{
- PROFILE_DATA *profile;
- FILE *log;
- time_t last_log_flush;
- gchar *host;
- gchar *port;
- gchar *log_filename;
- gint data_ready;
- gint sockfd;
- gint connected;
- gint notebook;
- gint logging;
- gboolean echo;
- gboolean naws; /* whether mud supports NAWS */
- GtkWidget *window;
- GtkWidget *vscrollbar;
- gint telnet_state;
- gint telnet_subneg;
- gint conn_id;
-};
-
-struct system_data {
- bool EchoText;
- bool KeepText;
- bool AutoSave;
- bool DisableKeys;
- gboolean ScrollOnOutput;
- gchar *FontName;
- gchar *CommDev;
- gchar *TerminalType;
- gchar *MudListFile;
- gchar *LastLogDir;
- gchar *TabLocation;
- gint History;
- gint Scrollback;
- gint FlushInterval;
- GdkColor Foreground;
- GdkColor Background;
-
- GdkColor Colors[C_MAX];
-};
-
-struct wizard_data2 {
- gchar *name;
- gchar *hostname;
- gchar *port;
- gchar *playername;
- gchar *password;
- gchar *profile;
-};
-
-
-struct keybind_data {
- gint state;
- gint keyv;
- gchar *data;
- KEYBIND_DATA *next;
-};
-
-struct profile_data {
- gchar *name;
- GList *alias;
- GList *variables;
- GList *triggers;
- GtkCList *keys;
- GSList *directions;
- KEYBIND_DATA *kd;
-};
-
-#ifdef ENABLE_MAPPER
-struct _AutoMapConfig
-{
- GList* unusual_exits;
-};
-#endif
-
-
-/*
- * Function declares
- */
-
-/* data.c */
-void load_data (GtkCList *, gchar *);
-void window_data(PROFILE_DATA *, gint);
-gchar *check_actions (GList *, gchar *);
-gchar *check_alias (GList *, gchar *);
-gchar *check_vars (GList *, gchar *);
-
-/* net.c */
-CONNECTION_DATA *make_connection (gchar *, gchar *, gchar *);
-void action_send_to_connection(gchar *, CONNECTION_DATA *);
-void disconnect (GtkWidget *, CONNECTION_DATA *);
-void send_to_connection (GtkWidget *, gpointer);
-void connection_send (CONNECTION_DATA *, gchar *);
-void connection_send_secret (CONNECTION_DATA *, gchar *);
-void connection_send_data (CONNECTION_DATA *, gchar *, int, gboolean);
-void connection_send_telnet_control (CONNECTION_DATA *, int len, ...);
-void open_connection (CONNECTION_DATA *);
-
-/* init.c */
-void main_window (void);
-gboolean destroy (GtkWidget *);
-void close_window (GtkWidget *, gpointer);
-
-/* color.c */
-void create_color_box( void );
-void window_color ( GtkWidget *widget, gpointer data );
-void save_colors ( void );
-void load_colors ( void );
-void load_color_to_c_structs ( void );
-
-/* keybind.c */
-void window_keybind ( PROFILE_DATA * );
-
-/* directions.c */
-void window_directions( PROFILE_DATA * );
-
-/* log.c */
-void window_menu_file_start_logging_cb ( GtkWidget *widget, gpointer data );
-void window_menu_file_stop_logging_cb ( GtkWidget *widget, gpointer data );
-void window_menu_file_save_buffer_cb ( GtkWidget *widget, gpointer data );
-void stop_logging_connection ( CONNECTION_DATA *connection );
-
-#ifdef ENABLE_MAPPER
-/* map.c */
-void window_automap ( GtkWidget *widget, gpointer data);
-void user_command ( AutoMap* automap, const gchar* command);
-#endif
#endif /* __GNOME_MUD_H__ */
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]