ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
options_config_t Struct Reference

Options configuration. More...

#include <include/ascii-chat/options/builder.h>

Data Fields

option_descriptor_t * descriptors
 Array of option descriptors.
 
size_t num_descriptors
 Number of descriptors.
 
option_dependency_t * dependencies
 Array of dependencies.
 
size_t num_dependencies
 Number of dependencies.
 
positional_arg_descriptor_t * positional_args
 Array of positional argument descriptors.
 
size_t num_positional_args
 Number of positional arguments.
 
size_t struct_size
 sizeof(options_t) for bounds checking
 
const char * program_name
 For usage header.
 
const char * description
 For usage header.
 
usage_descriptor_t * usage_lines
 Array of usage line descriptors.
 
size_t num_usage_lines
 Number of usage lines.
 
example_descriptor_t * examples
 Array of example descriptors.
 
size_t num_examples
 Number of examples.
 
help_mode_descriptor_t * modes
 Array of mode descriptors.
 
size_t num_modes
 Number of modes.
 
custom_section_descriptor_t * custom_sections
 Array of custom help sections.
 
size_t num_custom_sections
 Number of custom sections.
 
char ** owned_strings
 Strdup'd strings to free on cleanup.
 
size_t num_owned_strings
 Number of owned strings.
 
size_t owned_strings_capacity
 Allocated capacity.
 

Detailed Description

Options configuration.

A complete, immutable configuration of options for a mode. Built by options_builder_t and used for parsing.

Definition at line 401 of file builder.h.

Field Documentation

◆ custom_sections

custom_section_descriptor_t* options_config_t::custom_sections

Array of custom help sections.

Definition at line 425 of file builder.h.

Referenced by options_builder_build(), options_config_destroy(), and options_print_help_for_mode().

◆ dependencies

option_dependency_t* options_config_t::dependencies

Array of dependencies.

Definition at line 405 of file builder.h.

Referenced by options_builder_build(), options_builder_from_preset(), options_config_destroy(), and options_config_validate().

◆ description

const char* options_config_t::description

For usage header.

Definition at line 413 of file builder.h.

Referenced by options_builder_build(), and options_builder_from_preset().

◆ descriptors

◆ examples

example_descriptor_t* options_config_t::examples

◆ modes

help_mode_descriptor_t* options_config_t::modes

Array of mode descriptors.

Definition at line 422 of file builder.h.

Referenced by options_builder_build(), options_config_calculate_max_col_width(), and options_config_destroy().

◆ num_custom_sections

size_t options_config_t::num_custom_sections

Number of custom sections.

Definition at line 426 of file builder.h.

Referenced by options_builder_build(), and options_print_help_for_mode().

◆ num_dependencies

size_t options_config_t::num_dependencies

Number of dependencies.

Definition at line 406 of file builder.h.

Referenced by options_builder_build(), options_builder_from_preset(), and options_config_validate().

◆ num_descriptors

◆ num_examples

◆ num_modes

size_t options_config_t::num_modes

Number of modes.

Definition at line 423 of file builder.h.

Referenced by options_builder_build(), options_config_calculate_max_col_width(), and options_print_help_for_mode().

◆ num_owned_strings

size_t options_config_t::num_owned_strings

Number of owned strings.

Definition at line 430 of file builder.h.

Referenced by options_builder_build(), options_config_destroy(), and options_struct_destroy().

◆ num_positional_args

◆ num_usage_lines

◆ owned_strings

char** options_config_t::owned_strings

Strdup'd strings to free on cleanup.

Definition at line 429 of file builder.h.

Referenced by options_builder_build(), options_config_destroy(), and options_struct_destroy().

◆ owned_strings_capacity

size_t options_config_t::owned_strings_capacity

Allocated capacity.

Definition at line 431 of file builder.h.

Referenced by options_builder_build().

◆ positional_args

◆ program_name

const char* options_config_t::program_name

For usage header.

Definition at line 412 of file builder.h.

Referenced by options_builder_build(), and options_builder_from_preset().

◆ struct_size

size_t options_config_t::struct_size

sizeof(options_t) for bounds checking

Definition at line 411 of file builder.h.

Referenced by options_builder_build(), and options_builder_from_preset().

◆ usage_lines


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