Pharos 0.7.23
Modern Web Framework & Web App Hosting Service.
Loading...
Searching...
No Matches
native_app_runtime_clone.h File Reference

Declares helpers for cloning AppRuntime values. More...

Go to the source code of this file.

Functions

App runtime cloning helpers
int clone_app_runtime_native (const AppRuntime *source, AppRuntime *target)
 Deep-copies one loaded app runtime into another record.

Detailed Description

Declares helpers for cloning AppRuntime values.

Definition in file native_app_runtime_clone.h.

Function Documentation

◆ clone_app_runtime_native()

int clone_app_runtime_native ( const AppRuntime * source,
AppRuntime * target )

Deep-copies one loaded app runtime into another record.

Parameters
sourceSource runtime metadata to duplicate.
targetDestination runtime record to populate.
Returns
0 on success, or a non-zero status code on allocation failure.

Definition at line 44 of file native_app_runtime_clone.c.

References AppRuntime::app_id, AppRuntime::app_root, AppRuntime::artifact_dir, AppRuntime::base_path, AppRuntime::build_dir, clear_cloned_app_runtime(), clone_optional_string(), AppRuntime::compiled_entrypoint, AppRuntime::debug, AppRuntime::error_report_path, AppRuntime::host_profile, AppRuntime::log_format, AppRuntime::log_path, AppRuntime::runtime_conf_path, and AppRuntime::state_path.

Referenced by build_worker_context_native().