session: add vt switching

This commit is contained in:
Vaxry 2024-06-25 13:37:54 +02:00
parent 917d48153a
commit 3e2fe425e4
2 changed files with 6 additions and 2 deletions

View file

@ -67,8 +67,8 @@ namespace Aquamarine {
libseat* libseatHandle = nullptr;
std::vector<int> pollFDs();
void dispatchPendingEventsAsync();
bool switchVT(uint32_t vt);
struct SAddDrmCardEvent {
std::string path;

View file

@ -256,3 +256,7 @@ std::vector<int> Aquamarine::CSession::pollFDs() {
return {libseat_get_fd(libseatHandle), udev_monitor_get_fd(udevMonitor)};
}
bool Aquamarine::CSession::switchVT(uint32_t vt) {
return libseat_switch_session(libseatHandle, vt) == 0;
}