|
ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
|
Implementation of options validation functions. More...
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) |
| Validate port number (1-65535) | |
| int | validate_opt_positive_int (const char *value_str, char *error_msg, size_t error_msg_size) |
| Validate positive integer. | |
| int | validate_opt_non_negative_int (const char *value_str, char *error_msg, size_t error_msg_size) |
| Validate non-negative integer. | |
| int | validate_opt_color_mode (const char *value_str, char *error_msg, size_t error_msg_size) |
| Validate color mode string. | |
| int | validate_opt_render_mode (const char *value_str, char *error_msg, size_t error_msg_size) |
| Validate render mode string. | |
| int | validate_opt_palette (const char *value_str, char *error_msg, size_t error_msg_size) |
| Validate palette type string. | |
| int | validate_opt_log_level (const char *value_str, char *error_msg, size_t error_msg_size) |
| Validate log level string. | |
| 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. | |
| float | validate_opt_float_non_negative (const char *value_str, char *error_msg, size_t error_msg_size) |
| Validate non-negative float value. | |
| int | validate_opt_max_clients (const char *value_str, char *error_msg, size_t error_msg_size) |
| Validate max clients value (1-32) | |
| int | validate_opt_compression_level (const char *value_str, char *error_msg, size_t error_msg_size) |
| Validate compression level (1-9) | |
| int | validate_opt_fps (const char *value_str, char *error_msg, size_t error_msg_size) |
| Validate FPS value (1-144) | |
| int | validate_opt_reconnect (const char *value_str, char *error_msg, size_t error_msg_size) |
| Validate reconnect value. | |
| int | validate_opt_device_index (const char *value_str, char *error_msg, size_t error_msg_size) |
| Validate device index (-1 for default, 0+ for specific device) | |
| int | validate_opt_password (const char *value_str, char *error_msg, size_t error_msg_size) |
| Validate password (8-256 characters) | |
Implementation of options validation functions.
Definition in file validation.c.