Files
lightning/lightningd
Mark Beckwith bd5bf1f168 Enhanced param parsing
[ Squashed into single commit --RR ]

This adds two new macros, `p_req_tal()` and `p_opt_tal()`. These support
callbacks that take a `struct command *` context.  Example:

	static bool json_tok_label_x(struct command *cmd,
                                      const char *name,
				      const char *buffer,
				      const jsmntok_t *tok,
				      struct json_escaped **label)

The above is taken from the run-param unit test (near the bottom of the diff).
The return value is true on success, or false (and it calls command_fail itself).

We can pretty much remove all remaining usage of `json_tok_tok` in the codebase
with this type of callback.
2018-08-10 02:15:30 +00:00
..
2018-08-10 02:15:30 +00:00
2017-10-20 18:31:32 +02:00
2018-07-29 16:27:38 +02:00
2018-07-31 04:11:01 +00:00
2018-05-05 17:55:10 +02:00
2018-08-10 02:15:30 +00:00
2018-08-10 02:15:30 +00:00
2018-07-31 04:11:01 +00:00
2018-07-30 03:04:45 +00:00
2018-02-16 13:08:29 +01:00
2018-07-17 12:32:00 +02:00