Merge branch '2678_resize_layout_fix'
[midnight-commander.git] / src / execute.h
blob0ca97967d594330f6b2d7ab3d15c8618f6993242
1 /** \file execute.h
2 * \brief Header: execution routines
3 */
5 #ifndef MC__EXECUTE_H
6 #define MC__EXECUTE_H
8 #include "lib/utilunix.h"
10 /*** typedefs(not structures) and defined constants **********************************************/
12 /*** enums ***************************************************************************************/
14 /* If true, after executing a command, wait for a keystroke */
15 enum
17 pause_never,
18 pause_on_dumb_terminals,
19 pause_always
22 /*** structures declarations (and typedefs of structures)*****************************************/
24 /*** global variables defined in .c file *********************************************************/
26 extern int pause_after_run;
28 /*** declarations of public functions ************************************************************/
30 /* Execute functions that use the shell to execute */
31 void shell_execute (const char *command, int flags);
33 /* This one executes a shell */
34 void exec_shell (void);
36 /* Handle toggling panels by Ctrl-O */
37 void toggle_panels (void);
39 /* Handle toggling panels by Ctrl-Z */
40 gboolean execute_suspend (const gchar * event_group_name, const gchar * event_name,
41 gpointer init_data, gpointer data);
43 /* Execute command on a filename that can be on VFS */
44 void execute_with_vfs_arg (const char *command, const char *filename);
46 void post_exec (void);
47 void pre_exec (void);
49 /*** inline functions ****************************************************************************/
51 #endif /* MC__EXECUTE_H */