|
Pharos 0.7.23
Modern Web Framework & Web App Hosting Service.
|
Implements cleanup helpers for native runtime-owned data structures. More...
Go to the source code of this file.
Functions | |
| void | free_app_runtime (AppRuntime *app) |
| Releases heap-owned fields in a loaded app runtime record. | |
| void | free_runtime_stack (RuntimeStack *stack) |
| Releases all loaded app runtimes and listener metadata in a runtime stack. | |
Implements cleanup helpers for native runtime-owned data structures.
Definition in file native_runtime_cleanup.c.
| void free_app_runtime | ( | AppRuntime * | app | ) |
Releases heap-owned fields in a loaded app runtime record.
| app | Runtime record to clear. |
Definition at line 11 of file native_runtime_cleanup.c.
References AppRuntime::app_id, AppRuntime::app_root, AppRuntime::artifact_dir, AppRuntime::base_path, AppRuntime::build_dir, 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 add_runtime_app_native(), free_runtime_stack(), free_worker_context_native(), handle_native_backup_restore_ops_command(), handle_native_deploy_check_ops_command(), handle_native_drift_check_ops_command(), handle_native_runtime_app_command(), load_app_runtime_for_single_app(), prepare_finalized_app_from_config(), and serve_single_app().
| void free_runtime_stack | ( | RuntimeStack * | stack | ) |
Releases all loaded app runtimes and listener metadata in a runtime stack.
| stack | Runtime stack to clear. |
Definition at line 28 of file native_runtime_cleanup.c.
References RuntimeStack::apps, RuntimeStack::count, free_app_runtime(), RuntimeStack::host, RuntimeStack::port, and RuntimeStack::socket_path.
Referenced by handle_native_runtime_command(), and serve_runtime_stack_native().