The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

d/wmr: Rename wmr_config_parse to wmr_hmd_config_parse()

+5 -5
+3 -3
src/xrt/drivers/wmr/wmr_config.c
··· 29 29 #define JSON_STRING(a, b, c) u_json_get_string_into_array(u_json_get(a, b), c, sizeof(c)) 30 30 31 31 static void 32 - wmr_config_init_defaults(struct wmr_hmd_config *c) 32 + wmr_hmd_config_init_defaults(struct wmr_hmd_config *c) 33 33 { 34 34 memset(c, 0, sizeof(struct wmr_hmd_config)); 35 35 ··· 383 383 384 384 385 385 bool 386 - wmr_config_parse(struct wmr_hmd_config *c, char *json_string, enum u_logging_level log_level) 386 + wmr_hmd_config_parse(struct wmr_hmd_config *c, char *json_string, enum u_logging_level log_level) 387 387 { 388 - wmr_config_init_defaults(c); 388 + wmr_hmd_config_init_defaults(c); 389 389 390 390 cJSON *json_root = cJSON_Parse(json_string); 391 391 if (!cJSON_IsObject(json_root)) {
+1 -1
src/xrt/drivers/wmr/wmr_config.h
··· 119 119 }; 120 120 121 121 bool 122 - wmr_config_parse(struct wmr_hmd_config *c, char *json_string, enum u_logging_level log_level); 122 + wmr_hmd_config_parse(struct wmr_hmd_config *c, char *json_string, enum u_logging_level log_level); 123 123 124 124 125 125 struct wmr_bt_controller_config
+1 -1
src/xrt/drivers/wmr/wmr_hmd.c
··· 645 645 config_json_block[i] ^= wmr_config_key[i % sizeof(wmr_config_key)]; 646 646 } 647 647 648 - if (!wmr_config_parse(&wh->config, (char *)config_json_block, wh->log_level)) { 648 + if (!wmr_hmd_config_parse(&wh->config, (char *)config_json_block, wh->log_level)) { 649 649 free(data); 650 650 return -1; 651 651 }