| 1350 | } |
| 1351 | |
| 1352 | static struct plugin_opt *plugin_opt_find(struct plugin *plugin, |
| 1353 | const char *name, size_t namelen) |
| 1354 | { |
| 1355 | struct plugin_opt *opt; |
| 1356 | |
| 1357 | list_for_each(&plugin->plugin_opts, opt, list) { |
| 1358 | /* Trim the `--` that we added before */ |
| 1359 | if (memeqstr(name, namelen, opt->name + 2)) |
| 1360 | return opt; |
| 1361 | } |
| 1362 | return NULL; |
| 1363 | } |
| 1364 | |
| 1365 | /* start command might have included plugin-specific parameters */ |
| 1366 | static const char *plugin_add_params(struct plugin *plugin) |
no test coverage detected