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

Function configval_fieldname

lightningd/configs.c:49–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49static const char *configval_fieldname(const struct opt_table *ot)
50{
51 bool multi = (ot->type & OPT_MULTI);
52 if (ot->type & OPT_SHOWBOOL)
53 return multi ? "values_bool" : "value_bool";
54 if (ot->type & OPT_SHOWINT)
55 return multi ? "values_int" : "value_int";
56 if (ot->type & OPT_SHOWMSATS)
57 return multi ? "values_msat" : "value_msat";
58 return multi ? "values_str" : "value_str";
59}
60
61#define CONFIG_SHOW_BUFSIZE 4096
62

Callers 1

json_add_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected