List running applications
This commit is contained in:
+19
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user