Merge branch 'DEV_mcview2'
[midnight-commander.git] / src / background.h
blob266240d656e5e1ab6b4664dce5d257865d5856e4
2 /** \file background.h
3 * \brief Header: Background support
4 */
6 #ifndef MC_BACKGROUND_H
7 #define MC_BACKGROUND_H
9 #ifdef WITH_BACKGROUND
11 #include <sys/types.h> /* pid_t */
13 enum TaskState {
14 Task_Running,
15 Task_Stopped
18 typedef struct TaskList {
19 int fd;
20 pid_t pid;
21 int state;
22 char *info;
23 struct TaskList *next;
24 } TaskList;
26 extern struct TaskList *task_list;
28 struct FileOpContext;
29 int do_background (struct FileOpContext *ctx, char *info);
30 int parent_call (void *routine, struct FileOpContext *ctx, int argc, ...);
31 char *parent_call_string (void *routine, int argc, ...);
33 void unregister_task_running (pid_t pid, int fd);
34 extern int we_are_background;
36 #endif /* !WITH_BACKGROUND */
38 #endif /* MC_BACKGROUND_H */