Save the registry before exiting on a SIGTERM.
[wine] / server / console.h
1 /*
2  * Wine server consoles
3  *
4  * Copyright (C) 2001 Eric Pouech
5  */
6
7 #ifndef __WINE_SERVER_CONSOLE_H
8 #define __WINE_SERVER_CONSOLE_H
9
10 #include "wincon.h"
11
12 struct screen_buffer;
13 struct console_input_events;
14
15 struct console_input
16 {
17     struct object                obj;           /* object header */
18     int                          num_proc;      /* number of processes attached to this console */
19     struct thread               *renderer;      /* console renderer thread */
20     int                          mode;          /* input mode */
21     struct screen_buffer        *active;        /* active screen buffer */
22     int                          recnum;        /* number of input records */
23     INPUT_RECORD                *records;       /* input records */
24     struct console_input_events *evt;           /* synchronization event with renderer */
25     WCHAR                       *title;         /* console title */
26     WCHAR                      **history;       /* lines history */
27     int                          history_size;  /* number of entries in history array */
28     int                          history_index; /* number of used entries in history array */
29     int                          history_mode;  /* mode of history (non zero means remove doubled strings */
30 };
31
32 /* console functions */
33
34 extern void inherit_console(struct thread *parent_thread, struct process *process, handle_t hconin);
35 extern int free_console( struct process *process );
36
37 #endif  /* __WINE_SERVER_CONSOLE_H */