Ticket #2821: Fixed defect: ftp to a second site does not work
[midnight-commander.git] / src / consaver / cons.saver.h
blob56319ad2e4dcab017cdb19358fe6a898ee777226
1 /** \file cons.saver.h
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
9 * root is even worse.
12 #ifndef MC__CONS_SAVER_H
13 #define MC__CONS_SAVER_H
15 /*** typedefs(not structures) and defined constants **********************************************/
17 /*** enums ***************************************************************************************/
19 typedef enum
21 CONSOLE_INIT = '1',
22 CONSOLE_DONE,
23 CONSOLE_SAVE,
24 CONSOLE_RESTORE,
25 CONSOLE_CONTENTS
26 } console_action_t;
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 */