ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
binary_level_opts_t Struct Reference

Create a new options_t struct with all defaults set. More...

Data Fields

log_level_t log_level
unsigned short int verbose_level
bool quiet
char log_file [OPTIONS_BUFF_SIZE]
bool help
bool version
char config_file [OPTIONS_BUFF_SIZE]
asciichat_mode_t detected_mode
int color
bool json
bool log_format_console_only
bool no_check_update
char otel_log_level [OPTIONS_BUFF_SIZE]
char otel_endpoint [OPTIONS_BUFF_SIZE]
char otel_ca_file [OPTIONS_BUFF_SIZE]
char otel_enabled_telemetry [OPTIONS_BUFF_SIZE]
double otel_realtime_sample_rate
int otel_realtime_max_per_second
int otel_metrics_interval
int otel_timeout
int otel_queue_capacity

Detailed Description

Create a new options_t struct with all defaults set.

Initializes an options_t struct with all fields set to their default values from OPT_*_DEFAULT defines. This ensures consistent default initialization across the codebase.

Helper to save binary-level options before reset

Binary-level options are parsed first (STAGE 1) and should never be reset by subsequent stages. This helper extracts them so they can be preserved across options_t_new() calls.

Definition at line 592 of file options.c.

Field Documentation

◆ color

int binary_level_opts_t::color

Definition at line 601 of file options.c.

◆ config_file

char binary_level_opts_t::config_file[OPTIONS_BUFF_SIZE]

Definition at line 599 of file options.c.

◆ detected_mode

asciichat_mode_t binary_level_opts_t::detected_mode

Definition at line 600 of file options.c.

◆ help

bool binary_level_opts_t::help

Definition at line 597 of file options.c.

◆ json

bool binary_level_opts_t::json

Definition at line 603 of file options.c.

◆ log_file

char binary_level_opts_t::log_file[OPTIONS_BUFF_SIZE]

Definition at line 596 of file options.c.

◆ log_format_console_only

bool binary_level_opts_t::log_format_console_only

Definition at line 604 of file options.c.

◆ log_level

log_level_t binary_level_opts_t::log_level

Definition at line 593 of file options.c.

◆ no_check_update

bool binary_level_opts_t::no_check_update

Definition at line 606 of file options.c.

◆ otel_ca_file

char binary_level_opts_t::otel_ca_file[OPTIONS_BUFF_SIZE]

Definition at line 609 of file options.c.

◆ otel_enabled_telemetry

char binary_level_opts_t::otel_enabled_telemetry[OPTIONS_BUFF_SIZE]

Definition at line 610 of file options.c.

◆ otel_endpoint

char binary_level_opts_t::otel_endpoint[OPTIONS_BUFF_SIZE]

Definition at line 608 of file options.c.

◆ otel_log_level

char binary_level_opts_t::otel_log_level[OPTIONS_BUFF_SIZE]

Definition at line 607 of file options.c.

◆ otel_metrics_interval

int binary_level_opts_t::otel_metrics_interval

Definition at line 613 of file options.c.

◆ otel_queue_capacity

int binary_level_opts_t::otel_queue_capacity

Definition at line 615 of file options.c.

◆ otel_realtime_max_per_second

int binary_level_opts_t::otel_realtime_max_per_second

Definition at line 612 of file options.c.

◆ otel_realtime_sample_rate

double binary_level_opts_t::otel_realtime_sample_rate

Definition at line 611 of file options.c.

◆ otel_timeout

int binary_level_opts_t::otel_timeout

Definition at line 614 of file options.c.

◆ quiet

bool binary_level_opts_t::quiet

Definition at line 595 of file options.c.

◆ verbose_level

unsigned short int binary_level_opts_t::verbose_level

Definition at line 594 of file options.c.

◆ version

bool binary_level_opts_t::version

Definition at line 598 of file options.c.


The documentation for this struct was generated from the following file: