979
|
1 // cp_vt.h
|
|
2 //
|
|
3 // Copyright (c) 2006, Mike Acton <macton@cellperformance.com>
|
|
4 //
|
|
5 // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
|
6 // documentation files (the "Software"), to deal in the Software without restriction, including without
|
|
7 // limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8 // the Software, and to permit persons to whom the Software is furnished to do so, subject to the following
|
|
9 // conditions:
|
|
10 //
|
|
11 // The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
12 // portions of the Software.
|
|
13 //
|
|
14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
15 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
|
|
16 // EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
|
17 // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
|
18 // OR OTHER DEALINGS IN THE SOFTWARE.
|
|
19
|
|
20 #ifndef CP_VT_H
|
|
21 #define CP_VT_H
|
|
22
|
|
23 #if defined(__cplusplus)
|
|
24 extern "C"
|
|
25 {
|
|
26 #endif
|
|
27
|
|
28 typedef struct cp_vt cp_vt;
|
|
29
|
|
30 struct cp_vt
|
|
31 {
|
|
32 int prev_tty_ndx;
|
|
33 int prev_kdmode;
|
|
34 int tty;
|
|
35 int tty_ndx;
|
|
36 };
|
|
37
|
|
38 int cp_vt_open_graphics(cp_vt* restrict vt);
|
|
39 int cp_vt_close(cp_vt* restrict vt);
|
|
40
|
|
41 #if defined(__cplusplus)
|
|
42 }
|
|
43 #endif
|
|
44
|
|
45 #endif
|