Skip queue cleanups if queue has been destroyed already.
[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 struct screen_buffer;
11 struct console_input_events;
12
13 struct console_input
14 {
15     struct object                obj;           /* object header */
16     int                          num_proc;      /* number of processes attached to this console */
17     struct process              *renderer;      /* console renderer thread */
18     int                          mode;          /* input mode */
19     struct screen_buffer        *active;        /* active screen buffer */
20     int                          recnum;        /* number of input records */
21     void                        *records;       /* input records */
22     struct console_input_events *evt;           /* synchronization event with renderer */
23     WCHAR                       *title;         /* console title */
24     WCHAR                      **history;       /* lines history */
25     int                          history_size;  /* number of entries in history array */
26     int                          history_index; /* number of used entries in history array */
27     int                          history_mode;  /* mode of history (non zero means remove doubled strings */
28 };
29
30 /* console functions */
31
32 extern void inherit_console(struct process *parent, struct process *process, handle_t hconin);
33 extern int free_console( struct process *process );
34
35 #endif  /* __WINE_SERVER_CONSOLE_H */