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

Function plugin_opt_register

lightningd/plugin.c:884–895  ·  view source on GitHub ↗

Returns true if "name" was already registered and now overwritten. */

Source from the content-addressed store, hash-verified

882
883/* Returns true if "name" was already registered and now overwritten. */
884static bool plugin_opt_register(struct plugin_opt *popt)
885{
886 bool was_registered = opt_unregister(popt->name);
887 if (streq(popt->type, "flag"))
888 opt_register_noarg(popt->name, plugin_opt_flag_set, popt,
889 popt->description);
890 else
891 opt_register_arg(popt->name, plugin_opt_set, NULL, popt,
892 popt->description);
893
894 return was_registered;
895}
896
897static void destroy_plugin_opt(struct plugin_opt *opt)
898{

Callers 1

plugin_opt_addFunction · 0.85

Calls 1

opt_unregisterFunction · 0.85

Tested by

no test coverage detected