mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-08 20:41:59 +03:00
e792cffb8d
double underscore. Added #includes for dependent files. * popt.c: Likewise. * popthelp.c: Likewise. * tree.c: Moved a macro from tree.h to here, as it is useless outside tree.c.
32 lines
650 B
C
32 lines
650 B
C
#ifndef MC_BACKGROUND_H
|
|
#define MC_BACKGROUND_H
|
|
|
|
#ifdef WITH_BACKGROUND
|
|
|
|
enum TaskState {
|
|
Task_Running,
|
|
Task_Stopped
|
|
};
|
|
|
|
typedef struct TaskList {
|
|
int fd;
|
|
pid_t pid;
|
|
int state;
|
|
char *info;
|
|
struct TaskList *next;
|
|
} TaskList;
|
|
|
|
extern struct TaskList *task_list;
|
|
|
|
struct FileOpContext;
|
|
int do_background (struct FileOpContext *ctx, char *info);
|
|
int parent_call (void *routine, struct FileOpContext *ctx, int argc, ...);
|
|
char *parent_call_string (void *routine, int argc, ...);
|
|
|
|
void unregister_task_running (pid_t pid, int fd);
|
|
extern int we_are_background;
|
|
|
|
#endif /* !WITH_BACKGROUND */
|
|
|
|
#endif /* MC_BACKGROUND_H */
|