| 876 | } |
| 877 | |
| 878 | static char *plugin_opt_check(struct plugin_opt *popt) |
| 879 | { |
| 880 | /* Fail if this is deprecated */ |
| 881 | if (!lightningd_deprecated_in_ok(popt->plugin->plugins->ld, |
| 882 | popt->plugin->plugins->log, |
| 883 | popt->plugin->plugins->ld->deprecated_ok, |
| 884 | popt->plugin->shortname, |
| 885 | popt->name, |
| 886 | popt->depr_start, |
| 887 | popt->depr_end, NULL)) |
| 888 | return tal_fmt(tmpctx, "deprecated option (will be removed!)"); |
| 889 | return NULL; |
| 890 | } |
| 891 | |
| 892 | static bool plugin_opt_deprecated_out_ok(struct plugin_opt *popt) |
| 893 | { |
no test coverage detected