Pharos
0.7.23
Modern Web Framework & Web App Hosting Service.
Toggle main menu visibility
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
9
#include "
native_runtime_types.h
"
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
*/
20
int
clone_app_runtime_native
(
const
AppRuntime
*source,
AppRuntime
*target);
21
22
23
/** @} */
24
#endif
clone_app_runtime_native
int clone_app_runtime_native(const AppRuntime *source, AppRuntime *target)
Deep-copies one loaded app runtime into another record.
Definition
native_app_runtime_clone.c:44
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
src
native_runtime
c
native_app_runtime_clone.h
Generated by
1.17.0