2 * \brief Header: general purpose Linux console screen save/restore server
4 * This code does _not_ need to be setuid root. However, it needs
5 * read/write access to /dev/vcsa* (which is priviledged
6 * operation). You should create user vcsa, make cons.saver setuid
7 * user vcsa, and make all vcsa's owned by user vcsa.
8 * Seeing other peoples consoles is bad thing, but believe me, full
12 #ifndef MC__CONS_SAVER_H
13 #define MC__CONS_SAVER_H
15 /*** typedefs(not structures) and defined constants **********************************************/
17 /*** enums ***************************************************************************************/
28 /*** structures declarations (and typedefs of structures)*****************************************/
30 /*** global variables defined in .c file *********************************************************/
32 #ifndef LINUX_CONS_SAVER_C
33 /* Used only in mc, not in cons.saver */
34 extern int cons_saver_pid
;
35 #endif /* !LINUX_CONS_SAVER_C */
37 /*** declarations of public functions ************************************************************/
39 #ifndef LINUX_CONS_SAVER_C
40 /* Used only in mc, not in cons.saver */
41 void show_console_contents (int starty
, unsigned char begin_line
, unsigned char end_line
);
42 void handle_console (console_action_t action
);
43 #endif /* !LINUX_CONS_SAVER_C */
45 /*** inline functions ****************************************************************************/
46 #endif /* MC__CONS_SAVER_H */