ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
session_settings_t Struct Reference

Session settings for transmission between peers. More...

#include <src/common/session/settings.h>

Data Fields

uint32_t version
 Settings version for conflict detection (monotonically increasing)
 
int16_t width
 Terminal width in characters (0 = auto-detect)
 
int16_t height
 Terminal height in characters (0 = auto-detect)
 
uint8_t color_mode
 Color mode (terminal_color_mode_t value)
 
uint8_t render_mode
 Render mode (render_mode_t value)
 
uint8_t palette_type
 Palette type (palette_type_t value)
 
char palette_custom [32]
 Custom palette characters (if palette_type == PALETTE_CUSTOM)
 
uint8_t audio_enabled
 Audio enabled flag.
 
uint8_t encryption_required
 Encryption required flag.
 
uint8_t reserved [16]
 Reserved bytes for future expansion.
 

Detailed Description

Session settings for transmission between peers.

Contains display and rendering configuration that can be synchronized between session participants. Uses fixed-size fields for deterministic serialization.

Note
Struct is designed for binary serialization with network byte order.
Reserved bytes allow future extension without breaking compatibility.

Definition at line 77 of file settings.h.

Field Documentation

◆ audio_enabled

uint8_t session_settings_t::audio_enabled

◆ color_mode

uint8_t session_settings_t::color_mode

Color mode (terminal_color_mode_t value)

Definition at line 88 of file settings.h.

Referenced by session_settings_deserialize(), session_settings_equal(), session_settings_from_options(), session_settings_init(), and session_settings_serialize().

◆ encryption_required

uint8_t session_settings_t::encryption_required

◆ height

int16_t session_settings_t::height

◆ palette_custom

char session_settings_t::palette_custom[32]

Custom palette characters (if palette_type == PALETTE_CUSTOM)

Definition at line 97 of file settings.h.

Referenced by session_settings_deserialize(), session_settings_equal(), session_settings_from_options(), session_settings_init(), and session_settings_serialize().

◆ palette_type

uint8_t session_settings_t::palette_type

◆ render_mode

uint8_t session_settings_t::render_mode

◆ reserved

uint8_t session_settings_t::reserved[16]

Reserved bytes for future expansion.

Definition at line 106 of file settings.h.

Referenced by session_settings_deserialize(), and session_settings_serialize().

◆ version

uint32_t session_settings_t::version

Settings version for conflict detection (monotonically increasing)

Definition at line 79 of file settings.h.

Referenced by session_settings_deserialize(), session_settings_from_options(), session_settings_init(), and session_settings_serialize().

◆ width

int16_t session_settings_t::width

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