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

Class plugin_option

plugins/libplugin.c:41–62  ·  view source on GitHub ↗

Create an array of these, one for each --option you support. */

Source from the content-addressed store, hash-verified

39
40/* Create an array of these, one for each --option you support. */
41struct plugin_option {
42 const char *name;
43 const char *type;
44 const char *description;
45 /* Handle an option. If dynamic, check_only may be set to check
46 * for validity (but must not make any changes!) */
47 char *(*handle)(struct command *cmd, const char *str, bool check_only,
48 void *arg);
49 /* Print an option (used to show the default value, if returns true) */
50 bool (*jsonfmt)(struct command *cmd, struct json_stream *js, const char *fieldname,
51 void *arg);
52 /* Arg for handle and jsonfmt */
53 void *arg;
54 /* If true, this option requires --developer to be enabled */
55 bool dev_only;
56 /* If it's deprecated from a particular release (or NULL) */
57 const char *depr_start, *depr_end;
58 /* If true, allow setting after plugin has initialized */
59 bool dynamic;
60 /* If true, allow multiple settings. */
61 bool multi;
62};
63
64struct plugin {
65 /* lightningd interaction */

Callers 8

mainFunction · 0.70
mainFunction · 0.70
mainFunction · 0.70
mainFunction · 0.70
mainFunction · 0.70
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50

Calls

no outgoing calls

Tested by 1

mainFunction · 0.40