Rework wifi/multicast locks
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "configuration.h"
|
||||
#include "wifi_lock.h"
|
||||
#include "xr/fb_face_tracker2.h"
|
||||
#include "xr/hand_tracker.h"
|
||||
#ifdef __ANDROID__
|
||||
@@ -143,6 +144,8 @@ class application : public singleton<application>
|
||||
std::filesystem::path config_path;
|
||||
std::filesystem::path cache_path;
|
||||
|
||||
std::shared_ptr<wifi_lock> wifi;
|
||||
|
||||
std::string server_address;
|
||||
|
||||
std::mutex scene_stack_lock;
|
||||
@@ -182,8 +185,6 @@ public:
|
||||
#ifdef __ANDROID__
|
||||
void setup_jni();
|
||||
|
||||
void set_wifi_locks(bool enabled);
|
||||
|
||||
static AAssetManager * asset_manager()
|
||||
{
|
||||
return instance().app_info.native_app->activity->assetManager;
|
||||
@@ -317,6 +318,11 @@ public:
|
||||
return instance().eye_gaze_space;
|
||||
};
|
||||
|
||||
static wifi_lock & get_wifi_lock()
|
||||
{
|
||||
return *instance().wifi;
|
||||
}
|
||||
|
||||
static void ignore_debug_reports_for(void * object)
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
|
||||
Reference in New Issue
Block a user