Lines Matching defs:search_path
2838 // Add any files found in the search_path. If any path in the search path points to a specific JSON, attempt to
2840 VkResult add_data_files(const struct loader_instance *inst, char *search_path, struct loader_string_list *out_files,
2854 next_file = search_path;
2945 char *search_path = NULL;
3151 search_path = loader_instance_heap_calloc(inst, search_path_size, VK_SYSTEM_ALLOCATION_SCOPE_COMMAND);
3152 if (NULL == search_path) {
3160 cur_path_ptr = search_path;
3229 assert(cur_path_ptr - search_path < (ptrdiff_t)search_path_size);
3239 size_t search_path_updated_size = strlen(search_path);
3242 if (search_path[first] == PATH_SEPARATOR) {
3243 memmove(&search_path[first], &search_path[first + 1], search_path_updated_size - first + 1);
3249 first_end += strcspn(&search_path[first_end], path_sep_str);
3252 second_end += strcspn(&search_path[second_end], path_sep_str);
3254 !strncmp(&search_path[first], &search_path[second], second_end - second)) {
3255 // Found duplicate. Include PATH_SEPARATOR in second_end, then erase it from search_path.
3256 if (search_path[second_end] == PATH_SEPARATOR) {
3259 memmove(&search_path[second], &search_path[second_end], search_path_updated_size - second_end + 1);
3274 loader_strncpy(tmp_search_path, search_path_size + 1, search_path, search_path_size);
3297 vk_result = add_data_files(inst, search_path, out_files, use_first_found_manifest);
3339 loader_instance_heap_free(inst, search_path);