MCPcopy Create free account
hub / github.com/ElementsProject/lightning / plugin_opt_check

Function plugin_opt_check

lightningd/plugin.c:878–890  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

876}
877
878static 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
892static bool plugin_opt_deprecated_out_ok(struct plugin_opt *popt)
893{

Callers 4

plugin_opt_string_checkFunction · 0.85
plugin_opt_long_checkFunction · 0.85
plugin_opt_bool_checkFunction · 0.85
plugin_opt_flag_checkFunction · 0.85

Calls 1

Tested by

no test coverage detected