ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
options_builder_t Struct Reference

Options builder. More...

#include <lib/options/builder.h>

Data Fields

option_descriptor_tdescriptors
 Dynamic array of descriptors.
 
size_t num_descriptors
 Current count.
 
size_t descriptor_capacity
 Allocated capacity.
 
option_dependency_tdependencies
 Dynamic array of dependencies.
 
size_t num_dependencies
 Current count.
 
size_t dependency_capacity
 Allocated capacity.
 
positional_arg_descriptor_tpositional_args
 Dynamic array of positional args.
 
size_t num_positional_args
 Current count.
 
size_t positional_arg_capacity
 Allocated capacity.
 
size_t struct_size
 Target struct size.
 
const char * program_name
 Program name for usage.
 
const char * description
 Program description for usage.
 

Detailed Description

Options builder.

For incrementally constructing option configurations. Use builder functions to add options and dependencies, then build an immutable config.

Definition at line 192 of file builder.h.

Field Documentation

◆ dependencies

◆ dependency_capacity

size_t options_builder_t::dependency_capacity

Allocated capacity.

Definition at line 199 of file builder.h.

Referenced by options_builder_create().

◆ description

const char* options_builder_t::description

◆ descriptor_capacity

size_t options_builder_t::descriptor_capacity

Allocated capacity.

Definition at line 195 of file builder.h.

Referenced by options_builder_create().

◆ descriptors

◆ num_dependencies

◆ num_descriptors

◆ num_positional_args

size_t options_builder_t::num_positional_args

Current count.

Definition at line 202 of file builder.h.

Referenced by options_builder_add_positional(), options_builder_build(), and options_builder_create().

◆ positional_arg_capacity

size_t options_builder_t::positional_arg_capacity

Allocated capacity.

Definition at line 203 of file builder.h.

Referenced by options_builder_create().

◆ positional_args

positional_arg_descriptor_t* options_builder_t::positional_args

Dynamic array of positional args.

Definition at line 201 of file builder.h.

Referenced by options_builder_add_positional(), options_builder_build(), options_builder_create(), and options_builder_destroy().

◆ program_name

◆ struct_size

size_t options_builder_t::struct_size

Target struct size.

Definition at line 205 of file builder.h.

Referenced by options_builder_build(), and options_builder_create().


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