Clean up stuff that is not used anymore.
[midnight-commander.git] / tests / src / filemanager / do_panel_cd_stub_env.c
blob31e940b562995d23772c0f021b0978d559bcac80
1 #include "src/subshell.h"
2 #include "src/setup.h"
5 panels_options_t panels_options;
6 struct mc_fhl_struct *mc_filehighlight;
7 int confirm_execute = 0;
8 int auto_save_setup = 0;
9 int free_space = 0;
10 int horizontal_split = 0;
11 int first_panel_size = 0;
12 int default_source_codepage = 0;
13 int menubar_visible = 1;
14 WPanel *current_panel;
15 WInput *cmdline;
16 WMenuBar *the_menubar;
17 const global_keymap_t *panel_map;
18 gboolean command_prompt;
19 int saving_setup;
21 panels_layout_t panels_layout = {
22 .horizontal_split = 0,
23 .vertical_equal = 1,
24 .left_panel_size = 0,
25 .horizontal_equal = 1,
26 .top_panel_size = 0
29 WInput *
30 command_new (int y, int x, int cols)
32 WInput *cmd;
33 const input_colors_t command_colors = {
34 DEFAULT_COLOR,
35 COMMAND_MARK_COLOR,
36 DEFAULT_COLOR,
37 COMMAND_HISTORY_COLOR
40 cmd = input_new (y, x, (int *) command_colors, cols, "", "cmdline",
41 INPUT_COMPLETE_DEFAULT | INPUT_COMPLETE_CD | INPUT_COMPLETE_COMMANDS |
42 INPUT_COMPLETE_SHELL_ESC);
44 /* Add our hooks */
45 cmd->widget.callback = NULL;
47 return cmd;
50 int
51 do_cd (const vfs_path_t *new_dir, enum cd_enum exact)
53 (void) new_dir;
54 (void) exact;
56 return 0;
59 void
60 do_subshell_chdir (const vfs_path_t * vpath, gboolean update_prompt, gboolean reset_prompt)
62 (void) vpath;
63 (void) update_prompt;
64 (void) reset_prompt;
67 void
68 shell_execute (const char *command, int flags)
70 (void) command;
71 (void) flags;
74 void
75 panel_load_setup (WPanel * panel, const char *section)
77 (void) panel;
78 (void) section;
81 void
82 panel_save_setup (WPanel * panel, const char *section)
84 (void) panel;
85 (void) section;
88 void
89 free_my_statfs (void)
94 int
95 select_charset (int center_y, int center_x, int current_charset, gboolean seldisplay)
97 (void) center_y;
98 (void) center_x;
99 (void) current_charset;
100 (void) seldisplay;
102 return 0;
105 void
106 update_xterm_title_path (void)
110 void
111 init_my_statfs (void)
114 void
115 my_statfs (struct my_statfs *myfs_stats, const char *path)
117 (void) myfs_stats;
118 (void) path;
121 void
122 clean_dir (dir_list * list, int count)
124 (void) list;
125 (void) count;
129 struct Widget *
130 get_panel_widget (int idx)
132 (void) idx;
134 return NULL;
139 do_load_dir (const vfs_path_t *vpath, dir_list * list, sortfn * sort, gboolean reverse,
140 gboolean case_sensitive, gboolean exec_ff, const char *fltr)
142 (void) vpath;
143 (void) list;
144 (void) sort;
145 (void) reverse;
146 (void) case_sensitive;
147 (void) exec_ff;
148 (void) fltr;
150 return 0;
154 do_reload_dir (const vfs_path_t * vpath, dir_list * list, sortfn * sort, int count,
155 gboolean reverse, gboolean case_sensitive, gboolean exec_ff, const char *fltr)
157 (void) vpath;
158 (void) list;
159 (void) sort;
160 (void) count;
161 (void) reverse;
162 (void) case_sensitive;
163 (void) exec_ff;
164 (void) fltr;
166 return 0;
170 void
171 do_sort (dir_list * list, sortfn * sort, int top, gboolean reverse,
172 gboolean case_sensitive, gboolean exec_ff)
174 (void) list;
175 (void) sort;
176 (void) top;
177 (void) reverse;
178 (void) case_sensitive;
179 (void) exec_ff;
183 regex_command (const vfs_path_t *filename, const char *action)
185 (void) filename;
186 (void) action;
188 return 0;
191 gboolean
192 if_link_is_exe (const vfs_path_t *full_name, const file_entry * file)
194 (void) full_name;
195 (void) file;
197 return TRUE;
200 void
201 change_panel (void)
205 gboolean
206 set_zero_dir (dir_list * list)
208 (void) list;
210 return TRUE;
213 void
214 load_hint (gboolean force)
216 (void) force;
219 panel_view_mode_t
220 get_display_type (int idx)
222 (void) idx;
223 return view_listing;
226 panel_view_mode_t
227 get_current_type (void)
229 return view_listing;
232 panel_view_mode_t
233 get_other_type (void)
235 return view_listing;
239 get_current_index (void)
241 return 0;
245 get_other_index (void)
247 return 1;
251 unsorted (file_entry * a, file_entry * b)
253 (void) a;
254 (void) b;
256 return 0;
260 sort_name (file_entry * a, file_entry * b)
262 (void) a;
263 (void) b;
265 return 0;
269 sort_vers (file_entry * a, file_entry * b)
271 (void) a;
272 (void) b;
274 return 0;
278 sort_ext (file_entry * a, file_entry * b)
280 (void) a;
281 (void) b;
283 return 0;
287 sort_time (file_entry * a, file_entry * b)
289 (void) a;
290 (void) b;
292 return 0;
296 sort_atime (file_entry * a, file_entry * b)
298 (void) a;
299 (void) b;
301 return 0;
305 sort_ctime (file_entry * a, file_entry * b)
307 (void) a;
308 (void) b;
310 return 0;
314 sort_size (file_entry * a, file_entry * b)
316 (void) a;
317 (void) b;
319 return 0;
323 sort_inode (file_entry * a, file_entry * b)
325 (void) a;
326 (void) b;
328 return 0;
331 void
332 set_display_type (int num, panel_view_mode_t type)
334 (void) num;
335 (void) type;
338 void
339 copy_cmd_local (void)
343 void
344 delete_cmd_local (void)
348 void
349 view_raw_cmd (void)
353 void
354 edit_cmd_new (void)
358 void
359 rename_cmd_local (void)
363 void
364 select_invert_cmd (void)
368 void
369 unselect_cmd (void)
373 void
374 select_cmd (void)
378 struct WPanel *
379 get_other_panel (void)
381 return NULL;
384 const panel_field_t *
385 sort_box (panel_sort_info_t * info)
387 (void) info;
389 return NULL;
392 void
393 midnight_set_buttonbar (WButtonBar * b)
395 (void) b;