Pharos 0.7.23
Modern Web Framework & Web App Hosting Service.
Loading...
Searching...
No Matches
native_app_runtime_clone.h
Go to the documentation of this file.
1/**
2 * @file
3 * @brief Declares helpers for cloning AppRuntime values.
4 */
5
6#ifndef PHAROS_NATIVE_APP_RUNTIME_CLONE_H
7#define PHAROS_NATIVE_APP_RUNTIME_CLONE_H
8
10
11/** @name App runtime cloning helpers
12 * @{
13 */
14/**
15 * @brief Deep-copies one loaded app runtime into another record.
16 * @param source Source runtime metadata to duplicate.
17 * @param target Destination runtime record to populate.
18 * @return 0 on success, or a non-zero status code on allocation failure.
19 */
20int clone_app_runtime_native(const AppRuntime *source, AppRuntime *target);
21
22
23/** @} */
24#endif
int clone_app_runtime_native(const AppRuntime *source, AppRuntime *target)
Deep-copies one loaded app runtime into another record.
Defines shared native runtime data structures used across the Pharos C runtime.
Loaded runtime metadata for one Pharos app artifact.