List running applications

This commit is contained in:
Patrick Nicolas
2025-09-27 10:08:51 +02:00
parent fcbdda9908
commit 7fb8f4c1a8
7 changed files with 87 additions and 3 deletions
+19 -2
View File
@@ -462,6 +462,9 @@ struct start_app
std::string app_id;
};
struct get_running_applications
{};
using packets = std::variant<
crypto_handshake,
pin_check_1,
@@ -484,7 +487,8 @@ using packets = std::variant<
user_presence_changed,
override_foveation_center,
get_application_list,
start_app>;
start_app,
get_running_applications>;
} // namespace from_headset
namespace to_headset
@@ -692,6 +696,18 @@ struct application_icon
std::vector<std::byte> image; // In PNG
};
struct running_applications
{
struct application
{
std::string name;
uint32_t id;
bool overlay;
bool active;
};
std::vector<application> applications;
};
using packets = std::variant<
crypto_handshake,
pin_check_2,
@@ -706,6 +722,7 @@ using packets = std::variant<
tracking_control,
refresh_rate_change,
application_list,
application_icon>;
application_icon,
running_applications>;
} // namespace to_headset
} // namespace wivrn