Pharos 0.7.23
Modern Web Framework & Web App Hosting Service.
Loading...
Searching...
No Matches
native_app_runtime_finalize.h
Go to the documentation of this file.
1/**
2 * @file
3 * @brief Declares helpers that finalize loaded app runtime configuration.
4 */
5
6#ifndef PHAROS_NATIVE_APP_RUNTIME_FINALIZE_H
7#define PHAROS_NATIVE_APP_RUNTIME_FINALIZE_H
8
10
11/** @name App runtime finalization helpers
12 * @{
13 */
14/**
15 * @brief Resolves the runtime configuration path that should apply to an app.
16 * @param config Active serve configuration.
17 * @param app_root Root directory of the app being finalized.
18 * @return Newly allocated runtime config path, or NULL when no path is available.
19 */
20char *resolved_runtime_conf_path_from_config_native(const ServeConfig *config, const char *app_root);
21/**
22 * @brief Applies overrides and derived runtime paths to a loaded app runtime record.
23 * @param app Runtime record to finalize in place.
24 * @param config Active serve configuration.
25 * @param app_root_override Optional app root override.
26 * @param build_dir_override Optional build directory override.
27 * @return 0 on success, or a non-zero native status code on failure.
28 */
29int finalize_loaded_app_runtime_native(AppRuntime *app, const ServeConfig *config, const char *app_root_override, const char *build_dir_override);
30
31
32/** @} */
33#endif
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.
Defines shared native runtime data structures used across the Pharos C runtime.
Loaded runtime metadata for one Pharos app artifact.
Parsed native serve configuration used to bootstrap the runtime listener.