Lines Matching defs:json
170 return !strncmp(path, ".json", 5);
1922 /* Processes a json manifest's library_path and the location of the json manifest to create the path of the library
2651 // Given a cJSON struct (json) of the top level JSON object from layer manifest
2658 // If the json input object does not have all the required fields no entry
2660 VkResult loader_add_layer_properties(const struct loader_instance *inst, struct loader_layer_list *layer_instance_list, cJSON *json,
2670 // Make sure sure the top level json value is an object
2671 if (!json || json->type != 6) {
2674 item = loader_cJSON_GetObjectItem(json, "file_format_version");
2694 layers_node = loader_cJSON_GetObjectItem(json, "layers");
2717 layer_node = loader_cJSON_GetObjectItem(json, "layer");
2822 // Look for files ending with ".json" suffix
3031 const char json_suffix[] = ".json";
3425 // Takes a json file, opens, reads, and parses an ICD Manifest out of it.
3430 cJSON *json = NULL;
3439 res = loader_get_json(inst, file_str, &json);
3443 if (res != VK_SUCCESS || NULL == json) {
3448 cJSON *item = loader_cJSON_GetObjectItem(json, "file_format_version");
3478 cJSON *itemICD = loader_cJSON_GetObjectItem(json, "ICD");
3574 loader_cJSON_Delete(json);
3726 // Gets the layer data files corresponding to manifest_type & path_override, then parses the resulting json objects
3747 cJSON *json = NULL;
3748 VkResult local_res = loader_get_json(inst, file_str, &json);
3752 } else if (VK_SUCCESS != local_res || NULL == json) {
3756 local_res = loader_add_layer_properties(inst, instance_layers, json,
3758 loader_cJSON_Delete(json);
4940 // The Get*ProcAddr pointers will already be filled in if they were received from either the json file or the
6543 // from the json