config: add description-based output matching with desc: prefix #8

Merged
NotAShelf merged 16 commits from notashelf/push-vlkvqnysylxt into main 2026-04-21 13:49:21 +00:00
Showing only changes of commit 23527908c2 - Show all commits

config: fix wording

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I41e3e89470fa8181d887de0584c965176a6a6964
raf 2026-01-31 15:17:39 +03:00
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -196,7 +196,7 @@ static int add_output_mapping(chroma_config_t *config, const char *output_name,
return CHROMA_ERROR_MEMORY; return CHROMA_ERROR_MEMORY;
} }
// Validate string lengths to prevent buffer overflow // XXX: Validate string lengths to prevent buffer overflow
size_t output_len = strlen(output_name); size_t output_len = strlen(output_name);
size_t path_len = strlen(image_path); size_t path_len = strlen(image_path);
@ -419,9 +419,9 @@ static int parse_config_line(chroma_config_t *config, char *line,
return CHROMA_OK; return CHROMA_OK;
} }
// Check for extended output configuration with properties // Check for extended output configuration with properties. Format:
// Format: output.DP-1.scale = fill // output.DP-1.scale = fill
// Format: output.DP-1.filter = linear // output.DP-1.filter = linear
char *dot = strchr(output_name, '.'); char *dot = strchr(output_name, '.');
if (dot) { if (dot) {
// This is an output property (scale or filter) // This is an output property (scale or filter)