Pharos 0.7.23
Modern Web Framework & Web App Hosting Service.
Loading...
Searching...
No Matches
native_runtime_reports.h
Go to the documentation of this file.
1/**
2 * @file
3 * @brief Declares builders for native runtime report payloads.
4 */
5
6#ifndef PHAROS_NATIVE_RUNTIME_REPORTS_H
7#define PHAROS_NATIVE_RUNTIME_REPORTS_H
8
10
11/** @name Runtime report helpers
12 * @{
13 */
14/**
15 * @brief Builds a JSON report describing a native runtime build result.
16 * @param target_id Runtime target identifier.
17 * @param conf_path Runtime config file path.
18 * @param apps_dir Resolved apps directory.
19 * @param app_count Number of apps included in the runtime.
20 * @return Newly allocated JSON report text, or NULL on failure.
21 */
22char *build_native_runtime_build_report_json(const char *target_id, const char *conf_path, const char *apps_dir, size_t app_count);
23/**
24 * @brief Builds a JSON status report for a loaded runtime stack.
25 * @param stack Loaded runtime stack to summarize.
26 * @param apps_dir Runtime apps directory represented by the stack.
27 * @return Newly allocated JSON report text, or NULL on failure.
28 */
29char *build_native_runtime_status_report_json(const RuntimeStack *stack, const char *apps_dir);
30/**
31 * @brief Builds a JSON runtime report for one app artifact and host surface.
32 * @param report_id Stable report identifier.
33 * @param verb Report verb such as status or build.
34 * @param host_target Host target label to report.
35 * @param host_mode Host mode label to report.
36 * @param artifact_dir Active artifact directory for the app.
37 * @param app Finalized app runtime to summarize.
38 * @return Newly allocated JSON report text, or NULL on failure.
39 */
40char *build_native_app_runtime_report_json(const char *report_id, const char *verb, const char *host_target, const char *host_mode, const char *artifact_dir, const AppRuntime *app);
41
42
43/** @} */
44#endif
char * build_native_app_runtime_report_json(const char *report_id, const char *verb, const char *host_target, const char *host_mode, const char *artifact_dir, const AppRuntime *app)
Builds a JSON runtime report for one app artifact and host surface.
char * build_native_runtime_status_report_json(const RuntimeStack *stack, const char *apps_dir)
Builds a JSON status report for a loaded runtime stack.
char * build_native_runtime_build_report_json(const char *target_id, const char *conf_path, const char *apps_dir, size_t app_count)
Builds a JSON report describing a native runtime build result.
Defines shared native runtime data structures used across the Pharos C runtime.
Loaded runtime metadata for one Pharos app artifact.
In-memory collection of loaded app runtimes served by one listener.