Pharos
0.7.23
Modern Web Framework & Web App Hosting Service.
Toggle main menu visibility
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
9
#include "
native_runtime_types.h
"
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
*/
20
char
*
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
*/
29
int
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
resolved_runtime_conf_path_from_config_native
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.
Definition
native_app_runtime_finalize.c:121
finalize_loaded_app_runtime_native
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.
Definition
native_app_runtime_finalize.c:141
native_runtime_types.h
Defines shared native runtime data structures used across the Pharos C runtime.
AppRuntime
Loaded runtime metadata for one Pharos app artifact.
Definition
native_runtime_types.h:37
ServeConfig
Parsed native serve configuration used to bootstrap the runtime listener.
Definition
native_runtime_types.h:16
src
native_runtime
c
native_app_runtime_finalize.h
Generated by
1.17.0