mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-10 15:52:47 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user