Monado OpenXR Runtime
|
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>
Functions | |
char * | read_content (FILE *file) |
cJSON * | p_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... | |
Code to manage the settings file.
bool p_json_get_tracking_settings | ( | cJSON * | root, |
struct xrt_settings_tracking * | s | ||
) |
Extract tracking settings from the JSON.
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().
char* read_content | ( | FILE * | file | ) |
Referenced by p_json_open_or_create_main_file().