seatd/include/terminal.h
Kenny Levinsen be45c480ec terminal: Ack both release and acquire
Linux only requires acking release and ignores ack of acquire, but
FreeBSD is more stringent and will patiently wait for both to be acked.

Implement proper acking for both events.
2020-09-22 01:14:24 +02:00

16 lines
405 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_current_vt(int fd);
int terminal_switch_vt(int fd, int vt);
int terminal_ack_release(int fd);
int terminal_ack_acquire(int fd);
int terminal_set_keyboard(int fd, bool enable);
int terminal_set_graphics(int fd, bool enable);
#endif