Just a little correction at the it.po file.
[midnight-commander.git] / src / background.h
blob27ad9031ff5900c64ede25acf8bd9c8698cb0489
1 #ifndef __BACKGROUND_H
2 #define __BACKGROUND_H
4 /* Used for parent/child communication. These are numbers that
5 * could not possible be a routine address.
6 */
7 enum {
8 MSG_CHILD_EXITING
9 };
11 enum ReturnType {
12 Return_String,
13 Return_Integer
16 enum TaskState {
17 Task_Running,
18 Task_Stopped
21 typedef struct TaskList {
22 int fd;
23 pid_t pid;
24 int state;
25 char *info;
26 struct TaskList *next;
27 } TaskList;
29 extern struct TaskList *task_list;
31 extern int background_wait;
33 void tell_parent (int msg);
35 /* fileopctx.h must be included for FileOpContext to be defined */
36 #ifdef FILEOPCTX_H
37 int do_background (FileOpContext *ctx, char *info);
38 int parent_call (void *routine, FileOpContext *ctx, int argc, ...);
39 #endif /* FILEOPCTX_H */
41 void unregister_task_running (pid_t, int fd);
43 /* stubs */
44 void message_1s (int flags, char *title, const char *str1);
45 void message_2s (int flags, char *title, const char *str1, const char *str2);
46 void message_3s (int flags, char *title, const char *str1, const char *str2,
47 const char *str3);
48 void message_1s1d (int flags, char *title, const char *str, int d);
50 #endif