execute.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /** \file execute.h
  2. * \brief Header: execution routines
  3. */
  4. #ifndef MC__EXECUTE_H
  5. #define MC__EXECUTE_H
  6. #include "lib/util.h"
  7. #include "lib/vfs/vfs.h"
  8. /*** typedefs(not structures) and defined constants **********************************************/
  9. /*** enums ***************************************************************************************/
  10. /* If true, after executing a command, wait for a keystroke */
  11. enum
  12. {
  13. pause_never,
  14. pause_on_dumb_terminals,
  15. pause_always
  16. };
  17. /*** structures declarations (and typedefs of structures)*****************************************/
  18. /*** global variables defined in .c file *********************************************************/
  19. extern int pause_after_run;
  20. /*** declarations of public functions ************************************************************/
  21. /* Execute functions that use the shell to execute */
  22. void shell_execute (const char *command, int flags);
  23. /* Handle toggling panels by Ctrl-O */
  24. void toggle_subshell (void);
  25. /* Handle toggling panels by Ctrl-Z */
  26. gboolean execute_suspend (const gchar * event_group_name, const gchar * event_name,
  27. gpointer init_data, gpointer data);
  28. /* Execute command on a filename that can be on VFS */
  29. void execute_with_vfs_arg (const char *command, const vfs_path_t * filename_vpath);
  30. void execute_external_editor_or_viewer (const char *command, const vfs_path_t * filename_vpath,
  31. long start_line);
  32. void post_exec (void);
  33. void pre_exec (void);
  34. /*** inline functions ****************************************************************************/
  35. #endif /* MC__EXECUTE_H */