Monado OpenXR Runtime
u_config_json.h File Reference

Code to manage the settings file. More...

#include "util/u_json.h"
#include "xrt/xrt_settings.h"
Include dependency graph for u_config_json.h:

Go to the source code of this file.

Data Structures

struct  u_config_json
 

Enumerations

enum  u_config_json_active_config { U_ACTIVE_CONFIG_NONE = 0 , U_ACTIVE_CONFIG_TRACKING = 1 , U_ACTIVE_CONFIG_REMOTE = 2 }
 What config is currently active in the config file. More...
 
enum  u_gui_state_scene { GUI_STATE_SCENE_CALIBRATE }
 

Functions

void u_config_json_close (struct u_config_json *json)
 
void u_config_json_open_or_create_main_file (struct u_config_json *json)
 Load the JSON config file. More...
 
void u_config_json_save_calibration (struct u_config_json *json, struct xrt_settings_tracking *settings)
 Writes back calibration settings to the main config file. More...
 
void u_config_json_save_overrides (struct u_config_json *json, struct xrt_tracking_override *overrides, size_t override_count)
 Writes back tracking override settings to the main config file. More...
 
void u_config_json_get_active (struct u_config_json *json, enum u_config_json_active_config *out_active)
 Read from the JSON loaded json config file and returns the active config, can be overridden by P_OVERRIDE_ACTIVE_CONFIG envirmental variable. More...
 
bool u_config_json_get_tracking_settings (struct u_config_json *json, struct xrt_settings_tracking *s)
 Extract tracking settings from the JSON. More...
 
bool u_config_json_get_tracking_overrides (struct u_config_json *json, struct xrt_tracking_override *out_overrides, size_t *out_override_count)
 Extract tracking override settings from the JSON. More...
 
bool u_config_json_get_remote_settings (struct u_config_json *json, int *out_port, uint32_t *out_view_count)
 Extract remote settings from the JSON. More...
 
void u_gui_state_open_file (struct u_config_json *json)
 
struct cJSON * u_gui_state_get_scene (struct u_config_json *json, enum u_gui_state_scene scene)
 
void u_gui_state_save_scene (struct u_config_json *json, enum u_gui_state_scene scene, struct cJSON *new_state)
 

Detailed Description

Code to manage the settings file.

Author
Christoph Haag chris.nosp@m.toph.nosp@m..haag.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Enumeration Type Documentation

◆ u_config_json_active_config

What config is currently active in the config file.