Add packets to list applications

This commit is contained in:
Patrick Nicolas
2025-07-26 19:35:26 +02:00
parent ec63c8a395
commit 93a2f1c10b
6 changed files with 65 additions and 2 deletions
+8
View File
@@ -19,7 +19,9 @@
#include "stream.h"
#ifdef __ANDROID__
#include "application.h"
#endif
#include "utils/named_thread.h"
#include <spdlog/spdlog.h>
@@ -99,3 +101,9 @@ void scenes::stream::send_feedback(const wivrn::from_headset::feedback & feedbac
spdlog::warn("Exception while sending feedback packet: {}", e.what());
}
}
void scenes::stream::operator()(to_headset::application_list && apps)
{
auto locked = applications.lock();
*locked = std::move(apps);
}