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

Class plugin_option

plugins/libplugin.c:40–61  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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