Monado OpenXR Runtime
Functions

Code to manage the settings file. More...

#include "util/u_file.h"
#include "util/u_json.h"
#include "util/u_debug.h"
#include "p_prober.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
Include dependency graph for p_json.c:

Functions

char * read_content (FILE *file)
 
cJSONp_json_open_or_create_main_file (void)
 Load the JSON config file. More...
 
bool p_json_get_tracking_settings (cJSON *root, struct xrt_settings_tracking *s)
 Extract tracking settings from the JSON. More...
 

Detailed Description

Code to manage the settings file.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Function Documentation

◆ p_json_get_tracking_settings()

bool p_json_get_tracking_settings ( cJSON root,
struct xrt_settings_tracking s 
)

Extract tracking settings from the JSON.

◆ p_json_open_or_create_main_file()

cJSON* p_json_open_or_create_main_file ( void  )

Load the JSON config file.

References read_content(), and u_file_open_file_in_config_dir().

◆ read_content()

char* read_content ( FILE *  file)