|
Pharos 0.7.23
Modern Web Framework & Web App Hosting Service.
|
Declares Pharos-owned dynamic runtime config resolution helpers. More...
Go to the source code of this file.
Functions | |
| int | native_dynamic_config_key_is_path (const char *key) |
| Returns whether a dynamic config key resolves relative to its config file. | |
| char * | native_dynamic_config_resolve_value_dup (const char *conf_path, const char *key, const char *raw_value) |
| Resolves one raw dynamic config value against its owning config file. | |
| char * | native_dynamic_config_lookup_raw_dup (const char *conf_path, const char *key) |
| Loads one raw dynamic config value from a config file when it exists. | |
| char * | native_dynamic_config_merged_value_dup (const char *app_root, const char *runtime_conf_path, const char *key) |
| Loads one merged dynamic config value with runtime-conf precedence over app-local config. | |
Declares Pharos-owned dynamic runtime config resolution helpers.
Definition in file native_dynamic_config.h.
| int native_dynamic_config_key_is_path | ( | const char * | key | ) |
Returns whether a dynamic config key resolves relative to its config file.
| key | Config key name. |
Definition at line 10 of file native_dynamic_config.c.
References streq().
Referenced by native_dynamic_config_resolve_value_dup().
| char * native_dynamic_config_lookup_raw_dup | ( | const char * | conf_path, |
| const char * | key ) |
Loads one raw dynamic config value from a config file when it exists.
| conf_path | Config file path. |
| key | Config key name. |
Definition at line 33 of file native_dynamic_config.c.
References conf_lookup_value(), and path_exists().
Referenced by native_dynamic_config_merged_value_dup().
| char * native_dynamic_config_merged_value_dup | ( | const char * | app_root, |
| const char * | runtime_conf_path, | ||
| const char * | key ) |
Loads one merged dynamic config value with runtime-conf precedence over app-local config.
| app_root | App root directory. |
| runtime_conf_path | Runtime config path from the environment. |
| key | Config key name. |
Definition at line 40 of file native_dynamic_config.c.
References app_local_conf_path_native(), native_dynamic_config_lookup_raw_dup(), and native_dynamic_config_resolve_value_dup().
Referenced by handle_dynamic_config_value_command(), load_postgresql_runtime_config_runtime_local(), native_dynamic_relational_backend_dup(), and native_dynamic_relational_sqlite_path_dup().
| char * native_dynamic_config_resolve_value_dup | ( | const char * | conf_path, |
| const char * | key, | ||
| const char * | raw_value ) |
Resolves one raw dynamic config value against its owning config file.
| conf_path | Path to the config file that supplied the value. |
| key | Config key name. |
| raw_value | Raw config value. |
Definition at line 19 of file native_dynamic_config.c.
References native_dynamic_config_key_is_path(), and resolve_conf_relative_path_native().
Referenced by native_dynamic_config_merged_value_dup().