1 //	bfe2 - functions prototypes
2 //	Copyright (c) 1999-2003 Brand Huntsman and Lee Salzman
3 //
4 
5 
6 //
7 // main.c
8 //
9 
10 void	bfe_quit	( char *message );
11 
12 
13 //
14 // misc.c
15 //
16 
17 void	clip_whitespace		( char *string );
18 uint	string_compare		( char *s1, char *s2 );
19 uint	get_word		( char *buffer, uint *i, char **word );
20 void	goto_next_word		( char *buffer, uint *i );
21 
22 
23 //
24 // gtk.c
25 //
26 
27 GtkWidget *	new_hbox		( GtkWidget *box, gboolean pack );
28 GtkWidget *	new_vbox		( GtkWidget *box, gboolean pack );
29 void		new_gap			( GtkWidget *box );
30 GtkCList *	new_list		( GtkWidget *box, uint columns, gchar *titles[] );
31 GtkWidget *	new_label		( GtkWidget *box, gboolean pack, char *message, gboolean wrap );
32 GtkWidget *	new_text_entry		( GtkWidget *box, gboolean pack, uint width );
33 GtkWidget *	new_button		( GtkWidget *box, gboolean pack, char *name );
34 GtkWidget *	new_check_button	( GtkWidget *box, gboolean pack, char *name, gboolean state );
35 GtkWidget *	new_toggle_button	( GtkWidget *box, gboolean pack, char *name );
36 s_bgroup *	new_button_group	( GtkWidget *box, gboolean pack, e_orientation orientation,
37 					  uint nr_buttons, char *titles[] );
38 void		set_bgroup		( s_bgroup *group, uint button );
39 void		new_separator		( GtkWidget *box, gboolean pack, e_orientation orientation );
40 GtkWidget *	new_window		( GtkWindowType type, char *title, uint width, uint height );
41 GtkWidget *	new_window_vbox		( GtkWidget *window );
42 
43 
44 //
45 // bochs.c
46 //
47 
48 void	hook_sigio	( );
49 void	unhook_sigio	( );
50 
51 void	bochsInit	( );
52 void	bochsShutdown	( );
53 void	bochsStart	( );
54 
55 void	prompt_read	( );
56 
57 
58 //
59 // ctrl.c
60 //
61 
62 void	ctrlInit		( GtkWidget *box );
63 void	ctrlStop		( uint sigio );
64 void	ctrlEnableControls	( gboolean v );
65 void	ctrlGetInstruction	( );
66 
67 
68 //
69 // state.c
70 //
71 
72 void	stateInit		( GtkWidget *hbox );
73 void	stateUpdate		( );
74 void	stateUpdateStack	( );
75 
76 
77 //
78 // breakpoints.c
79 //
80 
81 void	breakpointsInit		( GtkWidget *vbox );
82 void	breakpointsUpdate	( e_bp_mode mode );
83 void	breakpointsReload	( );
84 void	breakpointsEnablePage	( gboolean v );
85 void	breakpointsSelect	( uint bp );
86 
87 
88 //
89 // watchpoints.c
90 //
91 
92 void	watchpointsInit		( GtkWidget *vbox );
93 void	watchpointsUpdate	( e_wp_mode mode );
94 void	watchpointsReload	( );
95 void	watchpointsEnablePage	( gboolean v );
96 void	watchpointsSelect	( uint wp );
97 
98 
99 //
100 // memory.c
101 //
102 
103 void	memoryInit		( GtkWidget *vbox );
104 void	memoryUpdateWindow	( s_memwin *m );
105 void	memoryEnablePage	( gboolean v );
106 
107 
108 //
109 // structures.c
110 //
111 
112 void	structuresInit		( GtkWidget *vbox );
113 void	structuresUpdate	( );
114 void	structuresUpdateWindow	( s_structwin *s );
115 void	structuresEnablePage	( gboolean v );
116 
117 
118 //
119 // prefs.c
120 //
121 
122 void	prefsInit		( GtkWidget *vbox );
123 void	prefsEnablePage		( gboolean v );
124 
125 
126 //
127 // history.c
128 //
129 
130 void	historyInit		( GtkWidget *vbox );
131 void	historyReset		( );
132 void	historyClose		( );
133 void	historyClear		( GtkWidget *widget, gpointer data );
134 void	historyUpdate		( );
135 void	historyRepeat		( );
136 void	historyWrite		( char *message );
137 void	historyClip		( );
138