24 U_ACTIVE_CONFIG_NONE = 0,
25 U_ACTIVE_CONFIG_TRACKING = 1,
26 U_ACTIVE_CONFIG_REMOTE = 2,
64 size_t override_count);
95 size_t *out_override_count);
106enum u_gui_state_scene
108 GUI_STATE_SCENE_CALIBRATE
115u_gui_state_get_scene(
struct u_config_json *json,
enum u_gui_state_scene scene);
118u_gui_state_save_scene(
struct u_config_json *json,
enum u_gui_state_scene scene,
struct cJSON *new_state);
bool u_config_json_get_tracking_settings(struct u_config_json *json, struct xrt_settings_tracking *s)
Extract tracking settings from the JSON.
Definition: u_config_json.c:351
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.
Definition: u_config_json.c:476
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_OVER...
Definition: u_config_json.c:224
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.
Definition: u_config_json.c:291
void u_config_json_open_or_create_main_file(struct u_config_json *json)
Load the JSON config file.
Definition: u_config_json.c:91
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.
Definition: u_config_json.c:416
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.
Definition: u_config_json.c:241
Definition: u_config_json.h:30
bool file_loaded
For error reporting, was it loaded but not parsed?
Definition: u_config_json.h:32
Holding enough information to recreate a tracking pipeline.
Definition: xrt_settings.h:67
Definition: xrt_settings.h:55
u_config_json_active_config
What config is currently active in the config file.
Definition: u_config_json.h:23
Tiny JSON wrapper around cJSON header.
Common settings structs to be transferred between different parts of Monado, mainly for tracking and ...