Rusty Russell
93bf7c4839
param: make command sinks (fail/success) return a special type.
...
These routines free the 'struct command': a common coding error is not
to return immediately.
To catch this, we make them return a non-NULL 'struct command_result
*', and we're going to make the command handlers return the same (to
encourage 'return command_fail(...)'-style usage).
We also provide two sources for external use:
1. command_param_failed() when param() fails.
2. command_its_complicated() for some complex cases.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2018-12-20 03:22:32 +00:00
..
2018-12-20 03:22:32 +00:00
2018-07-30 11:31:17 +02:00
2018-05-10 02:28:44 +00:00
2018-07-30 11:31:17 +02:00
2018-04-25 12:34:55 +02:00
2018-11-02 05:58:01 +00:00
2018-03-25 23:54:21 +00:00
2018-11-20 21:02:31 +01:00
2018-04-06 14:26:53 +02:00
2018-11-21 21:43:37 +00:00
2018-10-23 16:55:35 +02:00
2018-03-25 23:54:21 +00:00
2018-05-05 17:55:10 +02:00
2018-08-10 12:46:45 +02:00
2018-08-10 12:46:45 +02:00
2018-09-28 04:14:28 +00:00
2018-09-28 04:14:28 +00:00
2018-11-21 00:36:31 +00:00
2018-11-21 00:36:31 +00:00
2018-12-10 00:00:50 +00:00
2018-12-10 00:00:50 +00:00
2018-09-27 22:57:19 +02:00
2018-07-01 17:37:03 +02:00
2018-08-23 14:46:22 +02:00
2018-08-23 14:46:22 +02:00
2018-12-10 22:25:32 +00:00
2018-12-06 23:11:51 +01:00
2018-12-06 23:11:51 +01:00
2018-12-06 23:11:51 +01:00
2018-12-06 23:11:51 +01:00
2018-07-30 11:31:17 +02:00
2018-07-27 14:12:00 +02:00
2018-03-28 11:22:05 +02:00
2018-11-21 21:43:37 +00:00
2018-11-21 21:43:37 +00:00
2018-12-15 13:50:15 +01:00
2018-12-15 13:50:15 +01:00
2018-10-19 22:02:11 +00:00
2018-10-19 22:02:11 +00:00
2018-12-20 03:22:32 +00:00
2018-12-10 00:00:50 +00:00
2018-12-10 00:00:50 +00:00
2018-12-20 03:22:32 +00:00
2018-12-11 13:22:43 +01:00
2018-12-20 03:22:32 +00:00
2018-12-20 03:22:32 +00:00
2018-12-10 00:00:50 +00:00
2018-11-21 01:18:24 +00:00
2018-07-24 00:40:01 +02:00
2018-07-24 00:40:01 +02:00
2018-12-10 00:00:50 +00:00
2018-09-27 22:57:19 +02:00
2018-08-24 19:54:32 +02:00
2018-10-29 04:06:16 +00:00
2018-10-29 04:06:16 +00:00
2018-03-27 23:18:48 +00:00
2018-12-10 00:00:50 +00:00
2018-12-11 13:22:43 +01:00
2018-08-09 19:44:27 +02:00
2018-08-05 02:03:58 +00:00
2018-04-26 05:47:57 +00:00
2018-10-23 16:55:35 +02:00
2018-10-23 16:55:35 +02:00
2018-07-30 11:31:17 +02:00
2018-11-21 00:36:31 +00:00
2018-08-05 02:03:58 +00:00
2018-05-09 04:43:21 +00:00
2018-05-09 04:43:21 +00:00
2018-07-30 11:31:17 +02:00
2018-06-18 12:31:09 +02:00
2018-05-10 02:28:44 +00:00
2018-08-23 14:46:22 +02:00
2018-05-10 02:28:44 +00:00
2018-12-10 00:00:50 +00:00
2018-11-22 05:15:42 +00:00
2018-03-16 00:16:10 +00:00
2018-12-06 23:11:51 +01:00
2018-12-05 23:15:59 +00:00
2018-12-05 23:15:59 +00:00
2018-12-06 23:11:51 +01:00
2018-12-06 23:11:51 +01:00
2018-04-04 02:32:44 +00:00
2018-12-10 00:00:50 +00:00
2018-07-30 11:46:41 +02:00
2018-07-30 11:31:17 +02:00
2018-06-18 12:31:09 +02:00
2018-10-28 23:51:05 +00:00
2018-10-28 23:51:05 +00:00
2018-12-06 23:11:51 +01:00