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

Function destroy_plugin_opt

lightningd/plugin.c:942–951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

940}
941
942static void destroy_plugin_opt(struct plugin_opt *opt,
943 struct plugin *plugin)
944{
945 opt_unregister(opt->name);
946 list_del_from(&plugin->plugin_opts, &opt->list);
947 /* If any configvars were added on `plugin start`, remove now */
948 configvar_remove(&plugin->plugins->ld->configvars,
949 opt->name + 2, /* Skip -- */
950 CONFIGVAR_PLUGIN_START, NULL);
951}
952
953bool is_plugin_opt(const struct opt_table *ot)
954{

Callers

nothing calls this directly

Calls 3

opt_unregisterFunction · 0.85
list_del_fromFunction · 0.85
configvar_removeFunction · 0.85

Tested by

no test coverage detected