]> git.alsa-project.org Git - alsa-lib.git/commit
conf: Search included files under user specified configuration directories
authorMengdong Lin <mengdong.lin@linux.intel.com>
Mon, 24 Oct 2016 13:22:11 +0000 (21:22 +0800)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 Oct 2016 07:25:22 +0000 (09:25 +0200)
commitc16943868289171deabce8d695990bf75552e178
treea9675ec14167528080478a7721fb4d161725fe5d
parentadb9866b70bb8f30b08a0974d72a0256e689143d
conf: Search included files under user specified configuration directories

Users can include file by giving a relative path or just a file name via
alsaconf syntax <xxx>. ALSA conf will search the file in top configuration
directory and additional configuration directories defined by users via
alsaconf syntax <searchdir:xxx>.

ALSA conf will search and open an included file in the following order
of priority:

1. directly open the file by its name;
2. search for the file name in top config direcotry "/usr/share/alsa/";
3. search for the file name in additional configuration directories
   specified by users, via alsaconf syntax
   <searchdir:relative-path/to/user/share/alsa>;
   These directories will be searched in the same order as their
   definition.

The configuration directories defined by a file will only be used to
search the files included by this file.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/conf.c