server: Don't bother with default entry points for objects that don't even return...
[wine] / server / console.h
1 /*
2  * Wine server consoles
3  *
4  * Copyright (C) 2001 Eric Pouech
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20
21 #ifndef __WINE_SERVER_CONSOLE_H
22 #define __WINE_SERVER_CONSOLE_H
23
24 #include "wincon.h"
25
26 struct screen_buffer;
27 struct console_input_events;
28
29 struct console_input
30 {
31     struct object                obj;           /* object header */
32     int                          num_proc;      /* number of processes attached to this console */
33     struct thread               *renderer;      /* console renderer thread */
34     int                          mode;          /* input mode */
35     struct screen_buffer        *active;        /* active screen buffer */
36     int                          recnum;        /* number of input records */
37     INPUT_RECORD                *records;       /* input records */
38     struct console_input_events *evt;           /* synchronization event with renderer */
39     WCHAR                       *title;         /* console title */
40     WCHAR                      **history;       /* lines history */
41     int                          history_size;  /* number of entries in history array */
42     int                          history_index; /* number of used entries in history array */
43     int                          history_mode;  /* mode of history (non zero means remove doubled strings */
44     int                          edition_mode;  /* index to edition mode flavors */
45     struct event                *event;         /* event to wait on for input queue */
46 };
47
48 /* console functions */
49
50 extern void inherit_console(struct thread *parent_thread, struct process *process, obj_handle_t hconin);
51 extern int free_console( struct process *process );
52
53 #endif  /* __WINE_SERVER_CONSOLE_H */