Display the last connection time in dashboard/wivrnctl

This commit is contained in:
Guillaume Meunier
2025-03-25 21:15:01 +01:00
parent e0a1598ac5
commit 57a0cf1d4b
10 changed files with 252 additions and 57 deletions
+3
View File
@@ -20,6 +20,7 @@
#pragma once
#include <array>
#include <chrono>
#include <filesystem>
#include <map>
#include <optional>
@@ -72,11 +73,13 @@ struct headset_key
{
std::string public_key;
std::string name;
std::optional<std::chrono::system_clock::time_point> last_connection;
};
std::vector<headset_key> known_keys();
void add_known_key(headset_key key);
void remove_known_key(const std::string & key);
void rename_known_key(headset_key key);
void update_last_connection_timestamp(const std::string & key);
} // namespace wivrn