2 * \brief Header: execution routines
8 #include "lib/utilunix.h"
9 #include "lib/vfs/vfs.h"
11 /*** typedefs(not structures) and defined constants **********************************************/
13 /*** enums ***************************************************************************************/
15 /* If true, after executing a command, wait for a keystroke */
19 pause_on_dumb_terminals
,
23 /*** structures declarations (and typedefs of structures)*****************************************/
25 /*** global variables defined in .c file *********************************************************/
27 extern int pause_after_run
;
29 /*** declarations of public functions ************************************************************/
31 /* Execute functions that use the shell to execute */
32 void shell_execute (const char *command
, int flags
);
34 /* This one executes a shell */
35 void exec_shell (void);
37 /* Handle toggling panels by Ctrl-O */
38 void toggle_panels (void);
40 /* Handle toggling panels by Ctrl-Z */
41 gboolean
execute_suspend (const gchar
* event_group_name
, const gchar
* event_name
,
42 gpointer init_data
, gpointer data
);
44 /* Execute command on a filename that can be on VFS */
45 void execute_with_vfs_arg (const char *command
, const vfs_path_t
* filename_vpath
);
47 void post_exec (void);
50 /*** inline functions ****************************************************************************/
52 #endif /* MC__EXECUTE_H */