
The VT and KD ioctl's are picky about the tty fd used. In order to satisfy these, and to improve state cleanup, we now only and store the current tty when opening a client, and use this fd to perform teardown later. The presence of the fd is also used to signal that teardown is needed.
17 lines
429 B
C
17 lines
429 B
C
#ifndef _SEATD_TERMINAL_H
|
|
#define _SEATD_TERMINAL_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
int terminal_open(int vt);
|
|
|
|
int terminal_set_process_switching(int fd, bool enable);
|
|
int terminal_setup(int vt);
|
|
int terminal_teardown(int vt);
|
|
int terminal_current_vt(int fd);
|
|
int terminal_switch_vt(int fd, int vt);
|
|
int terminal_ack_switch(int fd);
|
|
int terminal_set_keyboard(int fd, bool enable);
|
|
int terminal_set_graphics(int fd, bool enable);
|
|
|
|
#endif
|