Update translations from transifex.net
[midnight-commander.git] / src / background.h
blob26de3ba02e1b45120cd30bcb9ffb4bc1e15b744e
1 /** \file background.h
2 * \brief Header: Background support
3 */
5 #ifndef MC__BACKGROUND_H
6 #define MC__BACKGROUND_H
8 #ifdef WITH_BACKGROUND
10 #include <sys/types.h> /* pid_t */
12 /*** typedefs(not structures) and defined constants **********************************************/
14 enum TaskState
16 Task_Running,
17 Task_Stopped
20 typedef struct TaskList
22 int fd;
23 int to_child_fd;
24 pid_t pid;
25 int state;
26 char *info;
27 struct TaskList *next;
28 } TaskList;
30 struct FileOpContext;
32 /*** enums ***************************************************************************************/
34 /*** structures declarations (and typedefs of structures)*****************************************/
36 /*** global variables defined in .c file *********************************************************/
38 extern struct TaskList *task_list;
40 extern int we_are_background;
42 /*** declarations of public functions ************************************************************/
44 int do_background (struct FileOpContext *ctx, char *info);
45 int parent_call (void *routine, struct FileOpContext *ctx, int argc, ...);
46 char *parent_call_string (void *routine, int argc, ...);
48 void unregister_task_running (pid_t pid, int fd);
49 void unregister_task_with_pid (pid_t pid);
51 /*** inline functions ****************************************************************************/
53 #endif /* !WITH_BACKGROUND */
55 #endif /* MC__BACKGROUND_H */