|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
Public API for retrieving option help text. More...
Go to the source code of this file.
Functions | |
| const char * | options_get_help_text (asciichat_mode_t mode, const char *option_name) |
| Get help text for an option in a specific mode. | |
Public API for retrieving option help text.
Provides the options_get_help_text() function for external code (especially web clients) to retrieve help text for CLI options.
Definition in file help_api.c.
| const char * options_get_help_text | ( | asciichat_mode_t | mode, |
| const char * | option_name | ||
| ) |
Get help text for an option in a specific mode.
| mode | The mode context (MODE_SERVER, MODE_CLIENT, MODE_MIRROR, etc.) |
| option_name | The long name of the option (e.g., "color-mode", "fps") |
Searches the options registry for the given option name and checks if it applies to the requested mode. If it does, returns the help text. If the option doesn't exist or doesn't apply to the mode, returns NULL.
Definition at line 27 of file help_api.c.
References g_options_registry, g_registry_size, and registry_init_size().
Referenced by get_help_text().