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

Function param_add

common/json_param.c:26–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24};
25
26static bool param_add(struct param **params,
27 const char *name,
28 enum param_style style,
29 param_cbx cbx, void *arg)
30{
31#if DEVELOPER
32 if (!(name && cbx && arg))
33 return false;
34#endif
35 struct param last;
36
37 last.is_set = false;
38 last.name = name;
39 last.style = style;
40 last.cbx = cbx;
41 last.arg = arg;
42
43 tal_arr_expand(params, last);
44 return true;
45}
46
47/* FIXME: To support the deprecated p_req_dup_ok */
48static bool is_required(enum param_style style)

Callers 3

param_subcommandFunction · 0.85
paramFunction · 0.85
add_membersFunction · 0.85

Calls

no outgoing calls

Tested by 1

add_membersFunction · 0.68