ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
platform/wasm/stubs/mode_defaults.c
Go to the documentation of this file.
1
9
10// WASM mirror mode doesn't need mode-specific defaults
12 (void)mode;
13 static const char *default_log_file = NULL;
14 return &default_log_file;
15}
16
18 (void)mode;
19 static const int default_port = 0;
20 return &default_port;
21}
22
24 (void)mode;
25 static const int default_websocket_port = 0;
26 return &default_websocket_port;
27}
28
30 (void)opts;
31 // No mode-specific defaults needed for WASM mirror mode
32}
asciichat_mode_t
Mode type for options parsing.
⚙️ Unified options parsing system for ascii-chat with builder pattern and lock-free access
Mode-aware default value getters and mode metadata.
void apply_mode_specific_defaults(options_t *opts)
Apply mode-specific defaults to an options struct after mode detection.
const void * get_default_websocket_port(asciichat_mode_t mode)
Get mode-specific default value for –websocket-port.
const void * get_default_port(asciichat_mode_t mode)
Get mode-specific default value for –port.
const void * get_default_log_file(asciichat_mode_t mode)
Get mode-specific default value for –log-file.
Consolidated options structure.