|
ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
|
Common validation macros to reduce duplication in protocol handlers. More...
Go to the source code of this file.
Macros | |
| #define | VALIDATE_NOTNULL_DATA(client, data, packet_name) |
| #define | VALIDATE_MIN_SIZE(client, len, min_size, packet_name) |
| #define | VALIDATE_EXACT_SIZE(client, len, expected_size, packet_name) |
| #define | VALIDATE_AUDIO_STREAM_ENABLED(client, packet_name) |
| #define | VALIDATE_AUDIO_SAMPLE_COUNT(client, num_samples, max_samples, packet_name) |
| #define | VALIDATE_AUDIO_ALIGNMENT(client, len, sample_size, packet_name) |
| #define | VALIDATE_RESOURCE_INITIALIZED(client, resource, resource_name) |
| #define | VALIDATE_PACKET_SIZE(client, data, len, expected_size, packet_name) |
| #define | VALIDATE_NONZERO(client, value, value_name, packet_name) |
| #define | VALIDATE_RANGE(client, value, min_val, max_val, value_name, packet_name) |
| #define | VALIDATE_CAPABILITY_FLAGS(client, flags, valid_mask, packet_name) |
| #define | VALIDATE_FLAGS_MASK(client, flags, valid_mask, packet_name) |
| #define | VALIDATE_PACKET_NOT_NULL(client, data, packet_name) |
Typedefs | |
| typedef struct client_info | client_info_t |
Functions | |
| void | disconnect_client_for_bad_data (client_info_t *client, const char *format,...) |
Common validation macros to reduce duplication in protocol handlers.
Definition in file util/validation.h.