Refactored expand_vars so that a custom lookup function can be used, which makes it usable for replacing tags by values other than environment variables

Signed-off-by: Dennis Potman <dennis.potman@adlinktech.com>
This commit is contained in:
Dennis Potman 2020-02-24 14:03:25 +01:00 committed by eboasson
parent 24e42fd658
commit b3c5a8d4fc
14 changed files with 180 additions and 49 deletions

View file

@ -29,7 +29,7 @@
static void config__check_env (const char *env_variable, const char *expected_value)
{
char *env_uri = NULL;
const char *env_uri = NULL;
ddsrt_getenv (env_variable, &env_uri);
#ifdef FORCE_ENV
{