move do_cd from src/main.c to src/filemanager/panel.c
[midnight-commander.git] / tests / src / filemanager / do_panel_cd_stub_env.c
blob05d227b8c3f4feef76ad68ea24f95c81dad3d27f
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 void
51 do_subshell_chdir (const vfs_path_t * vpath, gboolean update_prompt, gboolean reset_prompt)
53 (void) vpath;
54 (void) update_prompt;
55 (void) reset_prompt;
58 void
59 shell_execute (const char *command, int flags)
61 (void) command;
62 (void) flags;
65 void
66 panel_load_setup (WPanel * panel, const char *section)
68 (void) panel;
69 (void) section;
72 void
73 panel_save_setup (WPanel * panel, const char *section)
75 (void) panel;
76 (void) section;
79 void
80 free_my_statfs (void)
85 #ifdef HAVE_CHARSET
86 int
87 select_charset (int center_y, int center_x, int current_charset, gboolean seldisplay)
89 (void) center_y;
90 (void) center_x;
91 (void) current_charset;
92 (void) seldisplay;
94 return 0;
96 #endif
98 void
99 update_xterm_title_path (void)
103 void
104 init_my_statfs (void)
107 void
108 my_statfs (struct my_statfs *myfs_stats, const char *path)
110 (void) myfs_stats;
111 (void) path;
114 void
115 clean_dir (dir_list * list, int count)
117 (void) list;
118 (void) count;
122 struct Widget *
123 get_panel_widget (int idx)
125 (void) idx;
127 return NULL;
132 do_load_dir (const vfs_path_t *vpath, dir_list * list, sortfn * sort, gboolean reverse,
133 gboolean case_sensitive, gboolean exec_ff, const char *fltr)
135 (void) vpath;
136 (void) list;
137 (void) sort;
138 (void) reverse;
139 (void) case_sensitive;
140 (void) exec_ff;
141 (void) fltr;
143 return 0;
147 do_reload_dir (const vfs_path_t * vpath, dir_list * list, sortfn * sort, int count,
148 gboolean reverse, gboolean case_sensitive, gboolean exec_ff, const char *fltr)
150 (void) vpath;
151 (void) list;
152 (void) sort;
153 (void) count;
154 (void) reverse;
155 (void) case_sensitive;
156 (void) exec_ff;
157 (void) fltr;
159 return 0;
163 void
164 do_sort (dir_list * list, sortfn * sort, int top, gboolean reverse,
165 gboolean case_sensitive, gboolean exec_ff)
167 (void) list;
168 (void) sort;
169 (void) top;
170 (void) reverse;
171 (void) case_sensitive;
172 (void) exec_ff;
176 regex_command (const vfs_path_t *filename, const char *action)
178 (void) filename;
179 (void) action;
181 return 0;
184 gboolean
185 if_link_is_exe (const vfs_path_t *full_name, const file_entry * file)
187 (void) full_name;
188 (void) file;
190 return TRUE;
193 void
194 change_panel (void)
198 gboolean
199 set_zero_dir (dir_list * list)
201 (void) list;
203 return TRUE;
206 void
207 load_hint (gboolean force)
209 (void) force;
212 panel_view_mode_t
213 get_display_type (int idx)
215 (void) idx;
216 return view_listing;
219 panel_view_mode_t
220 get_current_type (void)
222 return view_listing;
225 panel_view_mode_t
226 get_other_type (void)
228 return view_listing;
232 get_current_index (void)
234 return 0;
238 get_other_index (void)
240 return 1;
244 unsorted (file_entry * a, file_entry * b)
246 (void) a;
247 (void) b;
249 return 0;
253 sort_name (file_entry * a, file_entry * b)
255 (void) a;
256 (void) b;
258 return 0;
262 sort_vers (file_entry * a, file_entry * b)
264 (void) a;
265 (void) b;
267 return 0;
271 sort_ext (file_entry * a, file_entry * b)
273 (void) a;
274 (void) b;
276 return 0;
280 sort_time (file_entry * a, file_entry * b)
282 (void) a;
283 (void) b;
285 return 0;
289 sort_atime (file_entry * a, file_entry * b)
291 (void) a;
292 (void) b;
294 return 0;
298 sort_ctime (file_entry * a, file_entry * b)
300 (void) a;
301 (void) b;
303 return 0;
307 sort_size (file_entry * a, file_entry * b)
309 (void) a;
310 (void) b;
312 return 0;
316 sort_inode (file_entry * a, file_entry * b)
318 (void) a;
319 (void) b;
321 return 0;
324 void
325 set_display_type (int num, panel_view_mode_t type)
327 (void) num;
328 (void) type;
331 void
332 copy_cmd_local (void)
336 void
337 delete_cmd_local (void)
341 void
342 view_raw_cmd (void)
346 void
347 edit_cmd_new (void)
351 void
352 rename_cmd_local (void)
356 void
357 select_invert_cmd (void)
361 void
362 unselect_cmd (void)
366 void
367 select_cmd (void)
371 struct WPanel *
372 get_other_panel (void)
374 return NULL;
377 const panel_field_t *
378 sort_box (panel_sort_info_t * info)
380 (void) info;
382 return NULL;
385 void
386 midnight_set_buttonbar (WButtonBar * b)
388 (void) b;