ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
metadata.c File Reference

Static metadata arrays for option completions and validation. More...

Go to the source code of this file.

Variables

const char * g_log_level_values [] = {"dev", "debug", "info", "warn", "error", "fatal", NULL}
 
const int g_log_level_integers [] = {LOG_DEV, LOG_DEBUG, LOG_INFO, LOG_WARN, LOG_ERROR, LOG_FATAL}
 
const char * g_log_level_descs []
 
const char * g_color_setting_values [] = {"auto", "true", "false", NULL}
 
const int g_color_setting_integers [] = {COLOR_SETTING_AUTO, COLOR_SETTING_TRUE, COLOR_SETTING_FALSE}
 
const char * g_color_setting_descs []
 
const char * g_utf8_setting_values [] = {"auto", "true", "false", NULL}
 
const int g_utf8_setting_integers [] = {UTF8_SETTING_AUTO, UTF8_SETTING_TRUE, UTF8_SETTING_FALSE}
 
const char * g_utf8_setting_descs []
 
const char * g_color_mode_values [] = {"auto", "none", "16", "256", "truecolor", NULL}
 
const int g_color_mode_integers []
 
const char * g_color_mode_descs []
 
const char * g_color_filter_values []
 
const int g_color_filter_integers []
 
const char * g_color_filter_descs []
 
const char * g_palette_values [] = {"standard", "blocks", "digital", "minimal", "cool", "custom", NULL}
 
const int g_palette_integers []
 
const char * g_palette_descs []
 
const char * g_render_values [] = {"foreground", "fg", "background", "bg", "half-block", NULL}
 
const int g_render_integers []
 
const char * g_render_descs []
 
const char * g_audio_source_values [] = {"auto", "mic", "media", "both", NULL}
 
const int g_audio_source_integers [] = {AUDIO_SOURCE_AUTO, AUDIO_SOURCE_MIC, AUDIO_SOURCE_MEDIA, AUDIO_SOURCE_BOTH}
 
const char * g_audio_source_descs []
 
const char * g_compression_examples [] = {"1", "3", "9", NULL}
 
const char * g_fps_examples [] = {"30", "60", "144", NULL}
 
const char * g_width_examples [] = {"80", "120", "160", NULL}
 
const char * g_height_examples [] = {"24", "40", "60", NULL}
 
const char * g_maxclients_examples [] = {"2", "4", "8", NULL}
 
const char * g_reconnect_examples [] = {"0", "5", "10", NULL}
 
const char * g_webcam_examples [] = {"0", "1", "2", NULL}
 
const char * g_mic_examples [] = {"-1", "0", "1", NULL}
 
const char * g_speakers_examples [] = {"-1", "0", "1", NULL}
 
const char * g_seek_examples [] = {"0", "60", "3:45", NULL}
 

Detailed Description

Static metadata arrays for option completions and validation.

Centralizes all enum values, descriptions, numeric ranges, and example arrays used by option completions and help text generation.

Author
Zachary Fogg me@zf.nosp@m.o.gg
Date
January 2026

Definition in file metadata.c.

Variable Documentation

◆ g_audio_source_descs

const char* g_audio_source_descs[]
Initial value:
= {"Smart selection (media-only when playing files, mic-only otherwise)",
"Microphone only (no media audio)", "Media audio only (no microphone)",
"Both microphone and media audio simultaneously", NULL}

Definition at line 126 of file metadata.c.

126 {"Smart selection (media-only when playing files, mic-only otherwise)",
127 "Microphone only (no media audio)", "Media audio only (no microphone)",
128 "Both microphone and media audio simultaneously", NULL};

◆ g_audio_source_integers

const int g_audio_source_integers[] = {AUDIO_SOURCE_AUTO, AUDIO_SOURCE_MIC, AUDIO_SOURCE_MEDIA, AUDIO_SOURCE_BOTH}

Definition at line 125 of file metadata.c.

125{AUDIO_SOURCE_AUTO, AUDIO_SOURCE_MIC, AUDIO_SOURCE_MEDIA, AUDIO_SOURCE_BOTH};

◆ g_audio_source_values

const char* g_audio_source_values[] = {"auto", "mic", "media", "both", NULL}

Definition at line 124 of file metadata.c.

124{"auto", "mic", "media", "both", NULL};

◆ g_color_filter_descs

const char* g_color_filter_descs[]
Initial value:
= {"No filtering (default)",
"Dark content on white background",
"White content on black background",
"Green color tint (#00FF41)",
"Magenta color tint (#FF00FF)",
"Fuchsia color tint (#FF00AA)",
"Orange color tint (#FF8800)",
"Teal color tint (#00DDDD)",
"Cyan color tint (#00FFFF)",
"Pink color tint (#FFB6C1)",
"Red color tint (#FF3333)",
"Yellow color tint (#FFEB99)",
NULL}

Definition at line 76 of file metadata.c.

76 {"No filtering (default)",
77 "Dark content on white background",
78 "White content on black background",
79 "Green color tint (#00FF41)",
80 "Magenta color tint (#FF00FF)",
81 "Fuchsia color tint (#FF00AA)",
82 "Orange color tint (#FF8800)",
83 "Teal color tint (#00DDDD)",
84 "Cyan color tint (#00FFFF)",
85 "Pink color tint (#FFB6C1)",
86 "Red color tint (#FF3333)",
87 "Yellow color tint (#FFEB99)",
88 NULL};

◆ g_color_filter_integers

const int g_color_filter_integers[]
Initial value:
= {COLOR_FILTER_NONE, COLOR_FILTER_BLACK, COLOR_FILTER_WHITE,
COLOR_FILTER_GREEN, COLOR_FILTER_MAGENTA, COLOR_FILTER_FUCHSIA,
COLOR_FILTER_ORANGE, COLOR_FILTER_TEAL, COLOR_FILTER_CYAN,
COLOR_FILTER_PINK, COLOR_FILTER_RED, COLOR_FILTER_YELLOW}

Definition at line 72 of file metadata.c.

72 {COLOR_FILTER_NONE, COLOR_FILTER_BLACK, COLOR_FILTER_WHITE,
73 COLOR_FILTER_GREEN, COLOR_FILTER_MAGENTA, COLOR_FILTER_FUCHSIA,
74 COLOR_FILTER_ORANGE, COLOR_FILTER_TEAL, COLOR_FILTER_CYAN,
75 COLOR_FILTER_PINK, COLOR_FILTER_RED, COLOR_FILTER_YELLOW};

◆ g_color_filter_values

const char* g_color_filter_values[]
Initial value:
= {"none", "black", "white", "green", "magenta", "fuchsia", "orange",
"teal", "cyan", "pink", "red", "yellow", NULL}

Definition at line 70 of file metadata.c.

70 {"none", "black", "white", "green", "magenta", "fuchsia", "orange",
71 "teal", "cyan", "pink", "red", "yellow", NULL};

◆ g_color_mode_descs

const char* g_color_mode_descs[]
Initial value:
= {"Auto-detect from terminal",
"Monochrome only",
"16 colors (ANSI)",
"256 colors (xterm)",
"24-bit truecolor (modern terminals)",
NULL}

Definition at line 59 of file metadata.c.

59 {"Auto-detect from terminal",
60 "Monochrome only",
61 "16 colors (ANSI)",
62 "256 colors (xterm)",
63 "24-bit truecolor (modern terminals)",
64 NULL};

◆ g_color_mode_integers

const int g_color_mode_integers[]
Initial value:
= {TERM_COLOR_AUTO, TERM_COLOR_NONE, TERM_COLOR_16, TERM_COLOR_256,
TERM_COLOR_TRUECOLOR}

Definition at line 57 of file metadata.c.

57 {TERM_COLOR_AUTO, TERM_COLOR_NONE, TERM_COLOR_16, TERM_COLOR_256,
58 TERM_COLOR_TRUECOLOR};

◆ g_color_mode_values

const char* g_color_mode_values[] = {"auto", "none", "16", "256", "truecolor", NULL}

Definition at line 56 of file metadata.c.

56{"auto", "none", "16", "256", "truecolor", NULL};

◆ g_color_setting_descs

const char* g_color_setting_descs[]
Initial value:
= {"Smart detection (colors if TTY and not piping/CLAUDECODE)",
"Force colors ON (override TTY/pipe/CLAUDECODE)",
"Force colors OFF (disable all colors)", NULL}

Definition at line 38 of file metadata.c.

38 {"Smart detection (colors if TTY and not piping/CLAUDECODE)",
39 "Force colors ON (override TTY/pipe/CLAUDECODE)",
40 "Force colors OFF (disable all colors)", NULL};

◆ g_color_setting_integers

const int g_color_setting_integers[] = {COLOR_SETTING_AUTO, COLOR_SETTING_TRUE, COLOR_SETTING_FALSE}

Definition at line 37 of file metadata.c.

37{COLOR_SETTING_AUTO, COLOR_SETTING_TRUE, COLOR_SETTING_FALSE};

◆ g_color_setting_values

const char* g_color_setting_values[] = {"auto", "true", "false", NULL}

Definition at line 36 of file metadata.c.

36{"auto", "true", "false", NULL};

◆ g_compression_examples

const char* g_compression_examples[] = {"1", "3", "9", NULL}

Definition at line 138 of file metadata.c.

138{"1", "3", "9", NULL};

◆ g_fps_examples

const char* g_fps_examples[] = {"30", "60", "144", NULL}

Definition at line 139 of file metadata.c.

139{"30", "60", "144", NULL};

◆ g_height_examples

const char* g_height_examples[] = {"24", "40", "60", NULL}

Definition at line 141 of file metadata.c.

141{"24", "40", "60", NULL};

◆ g_log_level_descs

const char* g_log_level_descs[]
Initial value:
= {"Development (most verbose, includes function traces)",
"Debug (includes internal state tracking)",
"Informational (key lifecycle events)",
"Warnings (unusual conditions)",
"Errors only",
"Fatal errors only",
NULL}

Definition at line 24 of file metadata.c.

24 {"Development (most verbose, includes function traces)",
25 "Debug (includes internal state tracking)",
26 "Informational (key lifecycle events)",
27 "Warnings (unusual conditions)",
28 "Errors only",
29 "Fatal errors only",
30 NULL};

◆ g_log_level_integers

const int g_log_level_integers[] = {LOG_DEV, LOG_DEBUG, LOG_INFO, LOG_WARN, LOG_ERROR, LOG_FATAL}

Definition at line 23 of file metadata.c.

23{LOG_DEV, LOG_DEBUG, LOG_INFO, LOG_WARN, LOG_ERROR, LOG_FATAL};

◆ g_log_level_values

const char* g_log_level_values[] = {"dev", "debug", "info", "warn", "error", "fatal", NULL}

Definition at line 22 of file metadata.c.

22{"dev", "debug", "info", "warn", "error", "fatal", NULL};

◆ g_maxclients_examples

const char* g_maxclients_examples[] = {"2", "4", "8", NULL}

Definition at line 142 of file metadata.c.

142{"2", "4", "8", NULL};

◆ g_mic_examples

const char* g_mic_examples[] = {"-1", "0", "1", NULL}

Definition at line 145 of file metadata.c.

145{"-1", "0", "1", NULL};

◆ g_palette_descs

const char* g_palette_descs[]
Initial value:
= {"Standard ASCII palette",
"Block characters (full/half/quarter blocks)",
"Digital/computer style",
"Minimal palette (light aesthetic)",
"Cool/modern style",
"Custom user-defined characters",
NULL}

Definition at line 97 of file metadata.c.

97 {"Standard ASCII palette",
98 "Block characters (full/half/quarter blocks)",
99 "Digital/computer style",
100 "Minimal palette (light aesthetic)",
101 "Cool/modern style",
102 "Custom user-defined characters",
103 NULL};

◆ g_palette_integers

const int g_palette_integers[]
Initial value:
= {PALETTE_STANDARD, PALETTE_BLOCKS, PALETTE_DIGITAL,
PALETTE_MINIMAL, PALETTE_COOL, PALETTE_CUSTOM}

Definition at line 95 of file metadata.c.

95 {PALETTE_STANDARD, PALETTE_BLOCKS, PALETTE_DIGITAL,
96 PALETTE_MINIMAL, PALETTE_COOL, PALETTE_CUSTOM};

◆ g_palette_values

const char* g_palette_values[] = {"standard", "blocks", "digital", "minimal", "cool", "custom", NULL}

Definition at line 94 of file metadata.c.

94{"standard", "blocks", "digital", "minimal", "cool", "custom", NULL};

◆ g_reconnect_examples

const char* g_reconnect_examples[] = {"0", "5", "10", NULL}

Definition at line 143 of file metadata.c.

143{"0", "5", "10", NULL};

◆ g_render_descs

const char* g_render_descs[]
Initial value:
= {"Render using foreground characters only",
"Render using foreground characters only (alias)",
"Render using background colors only",
"Render using background colors only (alias)",
"Use half-block characters for 2x vertical resolution",
NULL}

Definition at line 113 of file metadata.c.

113 {"Render using foreground characters only",
114 "Render using foreground characters only (alias)",
115 "Render using background colors only",
116 "Render using background colors only (alias)",
117 "Use half-block characters for 2x vertical resolution",
118 NULL};

◆ g_render_integers

const int g_render_integers[]
Initial value:
= {RENDER_MODE_FOREGROUND, RENDER_MODE_FOREGROUND,
RENDER_MODE_BACKGROUND, RENDER_MODE_BACKGROUND,
RENDER_MODE_HALF_BLOCK}

Definition at line 110 of file metadata.c.

110 {RENDER_MODE_FOREGROUND, RENDER_MODE_FOREGROUND, // fg is alias for foreground
111 RENDER_MODE_BACKGROUND, RENDER_MODE_BACKGROUND, // bg is alias for background
112 RENDER_MODE_HALF_BLOCK};

◆ g_render_values

const char* g_render_values[] = {"foreground", "fg", "background", "bg", "half-block", NULL}

Definition at line 109 of file metadata.c.

109{"foreground", "fg", "background", "bg", "half-block", NULL};

◆ g_seek_examples

const char* g_seek_examples[] = {"0", "60", "3:45", NULL}

Definition at line 147 of file metadata.c.

147{"0", "60", "3:45", NULL};

◆ g_speakers_examples

const char* g_speakers_examples[] = {"-1", "0", "1", NULL}

Definition at line 146 of file metadata.c.

146{"-1", "0", "1", NULL};

◆ g_utf8_setting_descs

const char* g_utf8_setting_descs[]
Initial value:
= {"Auto-detect UTF-8 support from terminal capabilities",
"Force UTF-8 ON (always use UTF-8 regardless of terminal)",
"Force UTF-8 OFF (disable UTF-8 support)", NULL}

Definition at line 48 of file metadata.c.

48 {"Auto-detect UTF-8 support from terminal capabilities",
49 "Force UTF-8 ON (always use UTF-8 regardless of terminal)",
50 "Force UTF-8 OFF (disable UTF-8 support)", NULL};

◆ g_utf8_setting_integers

const int g_utf8_setting_integers[] = {UTF8_SETTING_AUTO, UTF8_SETTING_TRUE, UTF8_SETTING_FALSE}

Definition at line 47 of file metadata.c.

47{UTF8_SETTING_AUTO, UTF8_SETTING_TRUE, UTF8_SETTING_FALSE};

◆ g_utf8_setting_values

const char* g_utf8_setting_values[] = {"auto", "true", "false", NULL}

Definition at line 46 of file metadata.c.

46{"auto", "true", "false", NULL};

◆ g_webcam_examples

const char* g_webcam_examples[] = {"0", "1", "2", NULL}

Definition at line 144 of file metadata.c.

144{"0", "1", "2", NULL};

◆ g_width_examples

const char* g_width_examples[] = {"80", "120", "160", NULL}

Definition at line 140 of file metadata.c.

140{"80", "120", "160", NULL};