2 * \brief Header: Background support
5 #ifndef MC__BACKGROUND_H
6 #define MC__BACKGROUND_H
10 #include <sys/types.h> /* pid_t */
12 /*** typedefs(not structures) and defined constants **********************************************/
20 typedef struct TaskList
27 struct TaskList
*next
;
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 */