|
Pharos 0.7.23
Modern Web Framework & Web App Hosting Service.
|
Declares helpers that finalize loaded app runtime configuration. More...
#include "native_runtime_types.h"Go to the source code of this file.
Functions | |
App runtime finalization helpers | |
| char * | resolved_runtime_conf_path_from_config_native (const ServeConfig *config, const char *app_root) |
| Resolves the runtime configuration path that should apply to an app. | |
| int | finalize_loaded_app_runtime_native (AppRuntime *app, const ServeConfig *config, const char *app_root_override, const char *build_dir_override) |
| Applies overrides and derived runtime paths to a loaded app runtime record. | |
Declares helpers that finalize loaded app runtime configuration.
Definition in file native_app_runtime_finalize.h.
| int finalize_loaded_app_runtime_native | ( | AppRuntime * | app, |
| const ServeConfig * | config, | ||
| const char * | app_root_override, | ||
| const char * | build_dir_override ) |
Applies overrides and derived runtime paths to a loaded app runtime record.
| app | Runtime record to finalize in place. |
| config | Active serve configuration. |
| app_root_override | Optional app root override. |
| build_dir_override | Optional build directory override. |
Definition at line 141 of file native_app_runtime_finalize.c.
References AppRuntime::app_root, AppRuntime::base_path, AppRuntime::build_dir, clone_or_empty_finalize(), AppRuntime::debug, AppRuntime::error_report_path, finalize_base_path_native(), finalize_debug_native(), finalize_error_report_path_native(), finalize_log_format_native(), finalize_log_path_native(), finalize_runtime_conf_path_native(), finalize_state_path_native(), free_finalize_fields(), AppRuntime::log_format, AppRuntime::log_path, native_runtime_finalize_strdup, AppRuntime::runtime_conf_path, and AppRuntime::state_path.
Referenced by add_runtime_app_native(), handle_native_runtime_app_command(), load_app_runtime_for_single_app(), and prepare_finalized_app_from_config().
| char * resolved_runtime_conf_path_from_config_native | ( | const ServeConfig * | config, |
| const char * | app_root ) |
Resolves the runtime configuration path that should apply to an app.
| config | Active serve configuration. |
| app_root | Root directory of the app being finalized. |
Definition at line 121 of file native_app_runtime_finalize.c.
References app_local_conf_path_native(), ServeConfig::conf_path, current_working_directory(), native_runtime_finalize_strdup, and resolve_relative_to().
Referenced by finalize_runtime_conf_path_native().