|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
Go to the source code of this file.
Functions | |
| int | validate_opt_port (const char *value_str, char *error_msg, size_t error_msg_size) |
| bool | validate_port_callback (const void *options_struct, char **error_msg) |
| int | validate_opt_positive_int (const char *value_str, char *error_msg, size_t error_msg_size) |
| int | validate_opt_non_negative_int (const char *value_str, char *error_msg, size_t error_msg_size) |
| int | validate_opt_color_mode (const char *value_str, char *error_msg, size_t error_msg_size) |
| int | validate_opt_render_mode (const char *value_str, char *error_msg, size_t error_msg_size) |
| int | validate_opt_palette (const char *value_str, char *error_msg, size_t error_msg_size) |
| int | validate_opt_log_level (const char *value_str, char *error_msg, size_t error_msg_size) |
| int | validate_opt_ip_address (const char *value_str, char *parsed_address, size_t address_size, bool is_client, char *error_msg, size_t error_msg_size) |
| float | validate_opt_float_non_negative (const char *value_str, char *error_msg, size_t error_msg_size) |
| float | validate_opt_volume (const char *value_str, char *error_msg, size_t error_msg_size) |
| int | validate_opt_max_clients (const char *value_str, char *error_msg, size_t error_msg_size) |
| int | validate_opt_compression_level (const char *value_str, char *error_msg, size_t error_msg_size) |
| int | validate_opt_fps (const char *value_str, char *error_msg, size_t error_msg_size) |
| int | validate_opt_reconnect (const char *value_str, char *error_msg, size_t error_msg_size) |
| int | validate_opt_device_index (const char *value_str, char *error_msg, size_t error_msg_size) |
| int | validate_opt_password (const char *value_str, char *error_msg, size_t error_msg_size) |
| int | options_collect_identity_keys (options_t *opts, int argc, char *argv[]) |
| bool | is_remote_key_path (const char *key_path) |
| bool is_remote_key_path | ( | const char * | key_path | ) |
Definition at line 596 of file validation.c.
Referenced by options_collect_identity_keys(), and options_init().
| int options_collect_identity_keys | ( | options_t * | opts, |
| int | argc, | ||
| char * | argv[] | ||
| ) |
Collect multiple –key flags into identity_keys array
Scans argv for all –key or -K flags and populates:
This enables multi-key support for servers/ACDS that need to present different identity keys (SSH, GPG) based on client expectations.
Definition at line 528 of file validation.c.
References is_remote_key_path().
Referenced by options_init().
| int validate_opt_color_mode | ( | const char * | value_str, |
| char * | error_msg, | ||
| size_t | error_msg_size | ||
| ) |
Validate color mode string Returns parsed color mode on success, -1 on error
Definition at line 139 of file validation.c.
| int validate_opt_compression_level | ( | const char * | value_str, |
| char * | error_msg, | ||
| size_t | error_msg_size | ||
| ) |
Validate compression level (1-9) Returns parsed value on success, -1 on error
Definition at line 388 of file validation.c.
| int validate_opt_device_index | ( | const char * | value_str, |
| char * | error_msg, | ||
| size_t | error_msg_size | ||
| ) |
Validate device index (-1 for default, or 0+ for specific device) Returns parsed value on success, INT_MIN on error
Definition at line 457 of file validation.c.
References strtoint_safe().
Referenced by validate_webcam_index().
| float validate_opt_float_non_negative | ( | const char * | value_str, |
| char * | error_msg, | ||
| size_t | error_msg_size | ||
| ) |
Validate float value (non-negative) Returns parsed value on success, returns -1.0f on error (caller must check)
Definition at line 321 of file validation.c.
| int validate_opt_fps | ( | const char * | value_str, |
| char * | error_msg, | ||
| size_t | error_msg_size | ||
| ) |
Validate FPS value (1-144) Returns parsed value on success, -1 on error
Definition at line 397 of file validation.c.
| int validate_opt_ip_address | ( | const char * | value_str, |
| char * | parsed_address, | ||
| size_t | address_size, | ||
| bool | is_client, | ||
| char * | error_msg, | ||
| size_t | error_msg_size | ||
| ) |
Validate IP address or hostname Returns 0 on success, -1 on error Sets parsed_address on success (resolved if hostname)
Definition at line 269 of file validation.c.
References is_valid_ipv4(), is_valid_ipv6(), and parse_ipv6_address().
| int validate_opt_log_level | ( | const char * | value_str, |
| char * | error_msg, | ||
| size_t | error_msg_size | ||
| ) |
Validate log level string Returns parsed log level on success, -1 on error
Definition at line 235 of file validation.c.
References platform_strcasecmp().
Referenced by parse_log_level_option().
| int validate_opt_max_clients | ( | const char * | value_str, |
| char * | error_msg, | ||
| size_t | error_msg_size | ||
| ) |
Validate max clients (1-32) Returns parsed value on success, -1 on error
Definition at line 379 of file validation.c.
| int validate_opt_non_negative_int | ( | const char * | value_str, |
| char * | error_msg, | ||
| size_t | error_msg_size | ||
| ) |
Validate non-negative integer Returns parsed value on success, -1 on error
Definition at line 130 of file validation.c.
| int validate_opt_palette | ( | const char * | value_str, |
| char * | error_msg, | ||
| size_t | error_msg_size | ||
| ) |
Validate palette type string Returns parsed palette type on success, -1 on error
Definition at line 201 of file validation.c.
| int validate_opt_password | ( | const char * | value_str, |
| char * | error_msg, | ||
| size_t | error_msg_size | ||
| ) |
Validate password (8-256 characters, no null bytes) Returns 0 on success, -1 on error
Definition at line 489 of file validation.c.
| int validate_opt_port | ( | const char * | value_str, |
| char * | error_msg, | ||
| size_t | error_msg_size | ||
| ) |
Validate port number (1-65535) Returns 0 on success, non-zero on error
Definition at line 74 of file validation.c.
References parse_port().
| int validate_opt_positive_int | ( | const char * | value_str, |
| char * | error_msg, | ||
| size_t | error_msg_size | ||
| ) |
Validate positive integer Returns parsed value on success, -1 on error
Definition at line 121 of file validation.c.
| int validate_opt_reconnect | ( | const char * | value_str, |
| char * | error_msg, | ||
| size_t | error_msg_size | ||
| ) |
Validate reconnect value (off, auto, 0, -1, or 1-999) Returns: 0 for "off" (no retries) -1 for "auto" (unlimited retries) 1-999 for specific retry count INT_MIN on parse error
Definition at line 410 of file validation.c.
References platform_strcasecmp(), and strtoint_safe().
| int validate_opt_render_mode | ( | const char * | value_str, |
| char * | error_msg, | ||
| size_t | error_msg_size | ||
| ) |
Validate render mode string Returns parsed render mode on success, -1 on error
Definition at line 173 of file validation.c.
| float validate_opt_volume | ( | const char * | value_str, |
| char * | error_msg, | ||
| size_t | error_msg_size | ||
| ) |
Validate volume value (0.0-1.0) Returns parsed value on success, -1.0f on error
Definition at line 350 of file validation.c.
| bool validate_port_callback | ( | const void * | options_struct, |
| char ** | error_msg | ||
| ) |
Validate port option callback (matches option_descriptor validate signature) Used during options parsing to validate port values with PCRE2
Definition at line 98 of file validation.c.
References platform_strdup().