1
1
mc/src/background.h
Pavel Roskin 26e444a11c * background.c (tell_parent): Eliminate.
(background_attention): Use error code instead.
* file.c (panel_operate): Exit with code 0, not 1.
2003-10-26 05:42:29 +00:00

32 строки
647 B
C

#ifndef __BACKGROUND_H
#define __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 /* __BACKGROUND_H */