ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
registry.c
Go to the documentation of this file.
1
17#include <string.h>
18
19// ============================================================================
20// Master Registry - Composition of all category arrays
21// ============================================================================
22// Array of pointers to each category's entries for organized access
23// Note: count field is computed at runtime (sentinel-terminated arrays)
24// Non-static so core.c can access it via extern declaration
25// Each category file contains options from ONLY ONE help group
26#ifndef NDEBUG
28 {g_logging_entries, "LOGGING"},
29 {g_terminal_entries, "TERMINAL"},
30 {g_configuration_entries, "CONFIGURATION"},
31 {g_display_entries, "DISPLAY"},
32 {g_webcam_entries, "WEBCAM"},
33 {g_audio_entries, "AUDIO"},
34 {g_media_entries, "MEDIA"},
35 {g_network_entries, "NETWORK"},
36 {g_security_entries, "SECURITY"},
37 {g_database_entries, "DATABASE"},
38 {g_debug_entries, "DEBUG"},
39 {NULL, NULL}};
40#else
42 {g_general_entries, "GENERAL"}, {g_logging_entries, "LOGGING"},
43 {g_terminal_entries, "TERMINAL"}, {g_configuration_entries, "CONFIGURATION"},
44 {g_display_entries, "DISPLAY"}, {g_webcam_entries, "WEBCAM"},
45 {g_audio_entries, "AUDIO"}, {g_media_entries, "MEDIA"},
46 {g_network_entries, "NETWORK"}, {g_security_entries, "SECURITY"},
47 {g_database_entries, "DATABASE"}, {NULL, NULL}};
48#endif
49
50// Unified view of all registry entries (for backward compatibility)
52
53size_t g_registry_size = 0;
55
56// Metadata is now initialized compile-time in registry entries
Extern declarations for all category entry arrays.
const registry_entry_t g_configuration_entries[]
Internal helper functions and data for registry implementation.
const registry_entry_t g_debug_entries[]
Definition debug.c:14
const registry_entry_t g_general_entries[]
Definition general.c:18
const registry_entry_t g_audio_entries[]
const registry_entry_t g_display_entries[]
const registry_entry_t g_media_entries[]
Definition media.c:37
Shared structures and macros for registry implementation.
const registry_entry_t g_database_entries[]
const registry_entry_t g_logging_entries[]
const registry_entry_t g_network_entries[]
const registry_entry_t g_terminal_entries[]
const registry_entry_t g_webcam_entries[]
registry_entry_t g_options_registry[2048]
Definition registry.c:51
bool g_metadata_populated
Definition registry.c:54
category_builder_t g_category_builders[]
Definition registry.c:27
size_t g_registry_size
Definition registry.c:53
const registry_entry_t g_security_entries[]
Definition security.c:18
Category builder structure - maps categories to their entry arrays.
Registry entry - stores option definition with mode bitmask and metadata.