1 /*
2  *  program.h
3  *
4  *  Copyright 2012 Dimitar Toshkov Zhekov <dimitar.zhekov@gmail.com>
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef PROGRAM_H
21 
22 extern gchar *program_executable;
23 extern gchar *program_arguments;
24 extern gchar *program_environment;
25 extern gchar *program_working_dir;
26 extern gchar *program_load_script;
27 extern gboolean program_auto_run_exit;
28 extern gboolean program_non_stop_mode;
29 extern gboolean program_temp_breakpoint;
30 extern gchar *program_temp_break_location;
31 
32 extern gboolean option_open_panel_on_load;
33 extern gboolean option_open_panel_on_start;
34 extern gboolean option_update_all_views;
35 extern gint option_high_bit_mode;
36 extern gboolean option_member_names;
37 extern gboolean option_argument_names;
38 extern gboolean option_long_mr_format;
39 extern gboolean option_inspect_expand;
40 extern gint option_inspect_count;
41 extern gboolean option_library_messages;
42 extern gboolean option_editor_tooltips;
43 
44 /* note: 2 references to mode */
45 #define opt_hb_mode(hb_mode) ((hb_mode) == HB_DEFAULT ? option_high_bit_mode : (hb_mode))
46 #define opt_mr_mode(mr_mode) ((mr_mode) == MR_DEFAULT ? option_member_names : (mr_mode))
47 
48 gboolean recent_menu_items(void);
49 void program_context_changed(void);
50 void program_update_state(DebugState state);
51 void on_program_setup(const MenuItem *menu_item);
52 void program_load_config(GKeyFile *config);
53 
54 void program_init(void);
55 void program_finalize(void);
56 
57 #define PROGRAM_H 1
58 #endif
59