OSDN Git Service

ucm: add the run-time variable substitution
authorJaroslav Kysela <perex@perex.cz>
Mon, 4 Nov 2019 15:18:07 +0000 (16:18 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 10 Nov 2019 12:12:21 +0000 (13:12 +0100)
commit0dd89f389245af2cff3547224391bebd84c9bb89
treeefe0373fe1299292b0d7c6e080922e4fc929f2d9
parent40aef87f1efc45d81591d0e850c75391193ba1a9
ucm: add the run-time variable substitution

Those two variables are supported:

  ${ConfName}      - configuration file name
  ${CardId}        - card identification string (like PCH)
  ${CardName}      - card name (driver)
  ${CardLongName}  - card long name (driver)
  ${env:ENV_NAME}  - returns the environment variable ENV_NAME

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/main.c
src/ucm/parser.c
src/ucm/ucm_local.h