| 24 | }; |
| 25 | |
| 26 | static 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 */ |
| 48 | static bool is_required(enum param_style style) |
no outgoing calls