Set feature to true when the user grants the corresponding permission

This commit is contained in:
Guillaume Meunier
2024-09-21 22:26:57 +02:00
parent 5cd2c695e9
commit 7ebc745f72
4 changed files with 148 additions and 78 deletions
+2 -1
View File
@@ -23,6 +23,7 @@
#include "wivrn_discover.h"
#include <map>
#include <mutex>
#include <string>
namespace xr
@@ -53,8 +54,8 @@ public:
void set_feature(feature f, bool state);
private:
mutable std::mutex mutex;
std::map<feature, bool> features;
configuration(const std::string &);
public:
configuration(xr::system &);