Lines Matching defs:dir
472 * defined by <searchdir:relative-path/to/top-alsa-conf-dir>,
480 char *dir;
532 * param dir - Path of the directory to add. Allocated externally and need to
539 static int add_include_path(struct filedesc *fd, const char *dir)
545 /* check, if dir is already registered (also in parents) */
549 if (strcmp(path->dir, dir) == 0)
558 path->dir = strdup(dir);
559 if (path->dir == NULL) {
581 if (path->dir)
582 free(path->dir);
656 if (!path->dir)
659 snprintf(full_path, PATH_MAX, "%s/%s", path->dir, file);
814 SNDERR("Invalid search dir %s", str);
822 SNDERR("Cannot add search dir %s", str);