|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
Custom option parsers implementation. More...
Go to the source code of this file.
Data Structures | |
| struct | setting_map_entry_t |
| Lookup table for setting string-to-enum mapping. More... | |
Functions | |
| bool | parse_color_setting (const char *arg, void *dest, char **error_msg) |
| bool | parse_utf8_setting (const char *arg, void *dest, char **error_msg) |
| bool | parse_color_mode (const char *arg, void *dest, char **error_msg) |
| bool | parse_color_filter (const char *arg, void *dest, char **error_msg) |
| bool | parse_render_mode (const char *arg, void *dest, char **error_msg) |
| bool | parse_palette_type (const char *arg, void *dest, char **error_msg) |
| bool | parse_log_level (const char *arg, void *dest, char **error_msg) |
| bool | parse_port_option (const char *arg, void *dest, char **error_msg) |
| int | parse_server_bind_address (const char *arg, void *config, char **remaining, int num_remaining, char **error_msg) |
| Parse server bind address positional argument. | |
| int | parse_client_address (const char *arg, void *config, char **remaining, int num_remaining, char **error_msg) |
| Parse client address positional argument. | |
| bool | parse_palette_chars (const char *arg, void *dest, char **error_msg) |
| bool | parse_verbose_flag (const char *arg, void *dest, char **error_msg) |
| bool | parse_timestamp (const char *arg, void *dest, char **error_msg) |
| Custom parser for –seek flag. | |
| bool | parse_volume (const char *arg, void *dest, char **error_msg) |
| bool | parse_log_file (const char *arg, void *dest, char **error_msg) |
| bool | parse_audio_source (const char *arg, void *dest, char **error_msg) |
Custom option parsers implementation.
Definition in file parsers.c.
| bool parse_audio_source | ( | const char * | arg, |
| void * | dest, | ||
| char ** | error_msg | ||
| ) |
Definition at line 1041 of file parsers.c.
References platform_strdup().
| int parse_client_address | ( | const char * | arg, |
| void * | config, | ||
| char ** | remaining, | ||
| int | num_remaining, | ||
| char ** | error_msg | ||
| ) |
Parse client address positional argument.
Implements the client address parsing logic from client.c. Parses [address][:port] with complex IPv6 handling.
Definition at line 634 of file parsers.c.
References is_session_string(), is_valid_ipv4(), is_valid_ipv6(), platform_strdup(), and safe_snprintf().
Referenced by options_preset_unified().
| bool parse_color_filter | ( | const char * | arg, |
| void * | dest, | ||
| char ** | error_msg | ||
| ) |
Definition at line 270 of file parsers.c.
References color_filter_from_cli_name(), platform_strdup(), and safe_snprintf().
| bool parse_color_mode | ( | const char * | arg, |
| void * | dest, | ||
| char ** | error_msg | ||
| ) |
Definition at line 211 of file parsers.c.
References asciichat_suggest_enum_value(), platform_strdup(), and safe_snprintf().
| bool parse_color_setting | ( | const char * | arg, |
| void * | dest, | ||
| char ** | error_msg | ||
| ) |
Definition at line 161 of file parsers.c.
References platform_strdup().
Referenced by options_init().
| bool parse_log_file | ( | const char * | arg, |
| void * | dest, | ||
| char ** | error_msg | ||
| ) |
Definition at line 1007 of file parsers.c.
References path_validate_user_path(), and platform_strdup().
| bool parse_log_level | ( | const char * | arg, |
| void * | dest, | ||
| char ** | error_msg | ||
| ) |
Definition at line 408 of file parsers.c.
References platform_strdup(), and safe_snprintf().
Referenced by options_init().
| bool parse_palette_chars | ( | const char * | arg, |
| void * | dest, | ||
| char ** | error_msg | ||
| ) |
Definition at line 809 of file parsers.c.
References platform_strdup(), and safe_snprintf().
| bool parse_palette_type | ( | const char * | arg, |
| void * | dest, | ||
| char ** | error_msg | ||
| ) |
Definition at line 345 of file parsers.c.
References asciichat_suggest_enum_value(), platform_strdup(), and safe_snprintf().
Referenced by set_palette().
| bool parse_port_option | ( | const char * | arg, |
| void * | dest, | ||
| char ** | error_msg | ||
| ) |
Definition at line 472 of file parsers.c.
References parse_port(), platform_strdup(), and safe_snprintf().
| bool parse_render_mode | ( | const char * | arg, |
| void * | dest, | ||
| char ** | error_msg | ||
| ) |
Definition at line 300 of file parsers.c.
References asciichat_suggest_enum_value(), platform_strdup(), and safe_snprintf().
| int parse_server_bind_address | ( | const char * | arg, |
| void * | config, | ||
| char ** | remaining, | ||
| int | num_remaining, | ||
| char ** | error_msg | ||
| ) |
Parse server bind address positional argument.
Implements the server bind address parsing logic from server.c. Can consume 1 argument per call, handling IPv4 or IPv6 bind addresses. The positional arg system will call this multiple times for multiple args.
Definition at line 512 of file parsers.c.
References is_localhost_ipv4(), is_localhost_ipv6(), is_valid_ipv4(), is_valid_ipv6(), parse_ipv6_address(), platform_strdup(), and safe_snprintf().
Referenced by options_preset_unified().
| bool parse_timestamp | ( | const char * | arg, |
| void * | dest, | ||
| char ** | error_msg | ||
| ) |
Custom parser for –seek flag.
Accepts both "hh:mm:ss.ms" format and plain seconds format. Examples:
Definition at line 890 of file parsers.c.
References platform_strdup().
| bool parse_utf8_setting | ( | const char * | arg, |
| void * | dest, | ||
| char ** | error_msg | ||
| ) |
Definition at line 192 of file parsers.c.
References platform_strdup().
| bool parse_verbose_flag | ( | const char * | arg, |
| void * | dest, | ||
| char ** | error_msg | ||
| ) |
Definition at line 852 of file parsers.c.
| bool parse_volume | ( | const char * | arg, |
| void * | dest, | ||
| char ** | error_msg | ||
| ) |
Definition at line 975 of file parsers.c.
References platform_strdup().