1
1
mc/src/background.h

46 строки
879 B
C
Исходник Обычный вид История

1998-02-27 04:54:42 +00:00
#ifndef __BACKGROUND_H
#define __BACKGROUND_H
#ifdef WITH_BACKGROUND
/*
* Used for parent/child communication. These are numbers that
1998-02-27 04:54:42 +00:00
* could not possible be a routine address.
*/
enum {
MSG_CHILD_EXITING
};
enum ReturnType {
Return_String,
Return_Integer
};
enum TaskState {
Task_Running,
Task_Stopped
};
typedef struct TaskList {
int fd;
1998-02-27 04:54:42 +00:00
pid_t pid;
int state;
char *info;
1998-02-27 04:54:42 +00:00
struct TaskList *next;
} TaskList;
extern struct TaskList *task_list;
void tell_parent (int msg);
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, ...);
1998-02-27 04:54:42 +00:00
void unregister_task_running (pid_t, int fd);
extern int we_are_background;
1998-02-27 04:54:42 +00:00
#endif /* !WITH_BACKGROUND */
1998-02-27 04:54:42 +00:00
#endif /* __BACKGROUND_H */