| 4410 | |
| 4411 | |
| 4412 | void add_plugin_options(DYNAMIC_ARRAY *options, MEM_ROOT *mem_root) |
| 4413 | { |
| 4414 | struct st_plugin_int *p; |
| 4415 | my_option *opt; |
| 4416 | |
| 4417 | if (!initialized) |
| 4418 | return; |
| 4419 | |
| 4420 | for (size_t idx= 0; idx < plugin_array.elements; idx++) |
| 4421 | { |
| 4422 | p= *dynamic_element(&plugin_array, idx, struct st_plugin_int **); |
| 4423 | |
| 4424 | if (!(opt= construct_help_options(mem_root, p))) |
| 4425 | continue; |
| 4426 | |
| 4427 | /* Only options with a non-NULL comment are displayed in help text */ |
| 4428 | for (;opt->name; opt++) |
| 4429 | if (opt->comment) |
| 4430 | insert_dynamic(options, (uchar*) opt); |
| 4431 | } |
| 4432 | } |
| 4433 | |
| 4434 | |
| 4435 | /** |
no test coverage detected