MINOR: sample: list registered sample converter functions

Similar to the sample fetch keywords, let's also list the converter
keywords. They're much simpler since there's no compatibility matrix.
Instead the input and output types are listed. This is called by
dump_registered_keywords() for the "cnv" keywords class.
This commit is contained in:
Willy Tarreau
2022-03-29 16:59:49 +02:00
parent f78813f74f
commit 29d799d591
3 changed files with 46 additions and 0 deletions

View File

@@ -1828,6 +1828,7 @@ static void dump_registered_keywords(void)
printf("acl: ACL keywords\n");
printf("cfg: configuration keywords\n");
printf("cli: CLI keywords\n");
printf("cnv: sample converter keywords\n");
printf("flt: filter names\n");
printf("smp: sample fetch functions\n");
printf("svc: service names\n");
@@ -1852,6 +1853,11 @@ static void dump_registered_keywords(void)
cli_list_keywords();
}
if (all || strcmp(kwd_dump, "cnv") == 0) {
printf("# List of registered sample converter functions:\n");
smp_dump_conv_kw();
}
if (all || strcmp(kwd_dump, "flt") == 0) {
printf("# List of registered filter names:\n");
flt_dump_kws(NULL);