summaryrefslogtreecommitdiffstats
path: root/src/execute.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:22:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:22:03 +0000
commitffccd5b2b05243e7976db80f90f453dccfae9886 (patch)
tree39a43152d27f7390d8f7a6fb276fa6887f87c6e8 /src/execute.h
parentInitial commit. (diff)
downloadmc-ffccd5b2b05243e7976db80f90f453dccfae9886.tar.xz
mc-ffccd5b2b05243e7976db80f90f453dccfae9886.zip
Adding upstream version 3:4.8.30.upstream/3%4.8.30
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/execute.h')
-rw-r--r--src/execute.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/execute.h b/src/execute.h
new file mode 100644
index 0000000..a326806
--- /dev/null
+++ b/src/execute.h
@@ -0,0 +1,51 @@
+/** \file execute.h
+ * \brief Header: execution routines
+ */
+
+#ifndef MC__EXECUTE_H
+#define MC__EXECUTE_H
+
+#include "lib/utilunix.h"
+#include "lib/vfs/vfs.h"
+
+/*** typedefs(not structures) and defined constants **********************************************/
+
+/*** enums ***************************************************************************************/
+
+/* If true, after executing a command, wait for a keystroke */
+enum
+{
+ pause_never,
+ pause_on_dumb_terminals,
+ pause_always
+};
+
+/*** structures declarations (and typedefs of structures)*****************************************/
+
+/*** global variables defined in .c file *********************************************************/
+
+extern int pause_after_run;
+
+/*** declarations of public functions ************************************************************/
+
+/* Execute functions that use the shell to execute */
+void shell_execute (const char *command, int flags);
+
+/* Handle toggling panels by Ctrl-O */
+void toggle_subshell (void);
+
+/* Handle toggling panels by Ctrl-Z */
+gboolean execute_suspend (const gchar * event_group_name, const gchar * event_name,
+ gpointer init_data, gpointer data);
+
+/* Execute command on a filename that can be on VFS */
+void execute_with_vfs_arg (const char *command, const vfs_path_t * filename_vpath);
+void execute_external_editor_or_viewer (const char *command, const vfs_path_t * filename_vpath,
+ long start_line);
+
+void post_exec (void);
+void pre_exec (void);
+
+/*** inline functions ****************************************************************************/
+
+#endif /* MC__EXECUTE_H */