Lines Matching defs:path
472 * defined by <searchdir:relative-path/to/top-alsa-conf-dir>,
478 /* path to search included files */
541 struct include_path *path;
548 path = list_entry(pos, struct include_path, list);
549 if (strcmp(path->dir, dir) == 0)
554 path = calloc(1, sizeof(*path));
555 if (!path)
558 path->dir = strdup(dir);
559 if (path->dir == NULL) {
560 free(path);
564 list_add_tail(&path->list, &fd->include_paths);
575 struct include_path *path;
579 path = list_entry(pos, struct include_path, list);
580 list_del(&path->list);
581 if (path->dir)
582 free(path->dir);
583 free(path);
591 * \return The top-level config directory path string
593 * This function returns the string of the top-level config directory path.
594 * If the path is specified via the environment variable \c ALSA_CONFIG_DIR
595 * and the value is a valid path, it returns this value. If unspecified, it
615 char *path = malloc(strlen(root) + strlen(name) + 2);
616 if (!path)
618 sprintf(path, "%s/%s", root, name);
619 return path;
635 * <searchdir:relative-path/to/user/share/alsa>;
642 struct include_path *path;
655 path = list_entry(pos, struct include_path, list);
656 if (!path->dir)
659 snprintf(full_path, PATH_MAX, "%s/%s", path->dir, file);
838 } else { /* absolute or relative file path */
2657 * \brief Creates an empty compound configuration node in the path.
2668 * #SND_CONFIG_TYPE_COMPOUND if the path does not exist. Otherwise,