Pharos
0.7.23
Modern Web Framework & Web App Hosting Service.
Toggle main menu visibility
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
9
#include "
native_runtime_types.h
"
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
*/
21
int
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
*/
26
void
free_serve_config_native
(
ServeConfig
*config);
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
*/
31
void
apply_serve_config_defaults_from_conf_native
(
ServeConfig
*config);
32
33
34
/** @} */
35
#endif
native_runtime_types.h
Defines shared native runtime data structures used across the Pharos C runtime.
parse_serve_config_native
int parse_serve_config_native(int argc, char **argv, ServeConfig *config)
Parses native serve CLI arguments into a serve configuration record.
Definition
native_serve_config.c:20
apply_serve_config_defaults_from_conf_native
void apply_serve_config_defaults_from_conf_native(ServeConfig *config)
Applies runtime-config-derived default values to an already parsed serve config.
Definition
native_serve_config.c:130
free_serve_config_native
void free_serve_config_native(ServeConfig *config)
Releases heap-owned fields in a serve configuration record.
Definition
native_serve_config.c:109
ServeConfig
Parsed native serve configuration used to bootstrap the runtime listener.
Definition
native_runtime_types.h:16
src
native_runtime
c
native_serve_config.h
Generated by
1.17.0