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

Function plugin_opt_flag_set

lightningd/plugin.c:852–859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

850}
851
852char *plugin_opt_flag_set(struct plugin_opt *popt)
853{
854 /* A set flag is a true */
855 tal_free(popt->values);
856 popt->values = tal_arr(popt, struct plugin_opt_value *, 1);
857 popt->values[0] = plugin_opt_value(popt->values, popt->type, "true");
858 return NULL;
859}
860
861char *plugin_opt_set(const char *arg, struct plugin_opt *popt)
862{

Callers

nothing calls this directly

Calls 2

tal_freeFunction · 0.85
plugin_opt_valueFunction · 0.70

Tested by

no test coverage detected