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

Function is_plugin_opt

lightningd/plugin.c:953–961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

951}
952
953bool is_plugin_opt(const struct opt_table *ot)
954{
955 if (ot->type & OPT_NOARG)
956 return ot->cb == (void *)plugin_opt_flag_check;
957
958 return ot->cb_arg == (void *)plugin_opt_string_check
959 || ot->cb_arg == (void *)plugin_opt_long_check
960 || ot->cb_arg == (void *)plugin_opt_bool_check;
961}
962
963/* Sets *ret to false if it doesn't appear, otherwise, sets to value */
964static char *bool_setting(tal_t *ctx,

Callers 3

json_add_config_pluginFunction · 0.85
get_opt_valFunction · 0.85
json_setconfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected