Pharos 0.7.23
Modern Web Framework & Web App Hosting Service.
Loading...
Searching...
No Matches
native_serve_config.h
Go to the documentation of this file.
1/**
2 * @file
3 * @brief Declares helpers for parsing and normalizing native serve configuration.
4 */
5
6#ifndef PHAROS_NATIVE_SERVE_CONFIG_H
7#define PHAROS_NATIVE_SERVE_CONFIG_H
8
10
11/** @name Serve configuration helpers
12 * @{
13 */
14/**
15 * @brief Parses native serve CLI arguments into a serve configuration record.
16 * @param argc Argument count for the serve command.
17 * @param argv Argument vector for the serve command.
18 * @param config Destination configuration record to populate.
19 * @return 0 on success, or a non-zero status code on parse failure.
20 */
21int parse_serve_config_native(int argc, char **argv, ServeConfig *config);
22/**
23 * @brief Releases heap-owned fields in a serve configuration record.
24 * @param config Configuration record to clear.
25 */
27/**
28 * @brief Applies runtime-config-derived default values to an already parsed serve config.
29 * @param config Configuration record to normalize in place.
30 */
32
33
34/** @} */
35#endif
Defines shared native runtime data structures used across the Pharos C runtime.
int parse_serve_config_native(int argc, char **argv, ServeConfig *config)
Parses native serve CLI arguments into a serve configuration record.
void apply_serve_config_defaults_from_conf_native(ServeConfig *config)
Applies runtime-config-derived default values to an already parsed serve config.
void free_serve_config_native(ServeConfig *config)
Releases heap-owned fields in a serve configuration record.
Parsed native serve configuration used to bootstrap the runtime listener.