Pharos
0.7.23
Modern Web Framework & Web App Hosting Service.
Toggle main menu visibility
Loading...
Searching...
No Matches
native_runtime_cleanup.h
Go to the documentation of this file.
1
/**
2
* @file
3
* @brief Declares cleanup helpers for native runtime-owned data structures.
4
*/
5
6
#ifndef PHAROS_NATIVE_RUNTIME_CLEANUP_H
7
#define PHAROS_NATIVE_RUNTIME_CLEANUP_H
8
9
#include "
native_runtime_types.h
"
10
11
/** @name Runtime cleanup helpers
12
* @{
13
*/
14
/**
15
* @brief Releases heap-owned fields in a loaded app runtime record.
16
* @param app Runtime record to clear.
17
*/
18
void
free_app_runtime
(
AppRuntime
*app);
19
/**
20
* @brief Releases all loaded app runtimes and listener metadata in a runtime stack.
21
* @param stack Runtime stack to clear.
22
*/
23
void
free_runtime_stack
(
RuntimeStack
*stack);
24
25
/** @} */
26
#endif
free_runtime_stack
void free_runtime_stack(RuntimeStack *stack)
Releases all loaded app runtimes and listener metadata in a runtime stack.
Definition
native_runtime_cleanup.c:28
free_app_runtime
void free_app_runtime(AppRuntime *app)
Releases heap-owned fields in a loaded app runtime record.
Definition
native_runtime_cleanup.c:11
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
RuntimeStack
In-memory collection of loaded app runtimes served by one listener.
Definition
native_runtime_types.h:56
src
native_runtime
c
native_runtime_cleanup.h
Generated by
1.17.0