common: update comments documenting the use of param()

The file common/json_tok.c has been removed in a previous
commit.

Changelog-None
This commit is contained in:
tony
2022-12-24 12:56:40 +01:00
committed by Vincenzo Palazzo
parent a6db22ece2
commit 4b98df186d

View File

@@ -21,14 +21,12 @@
* *
* unsigned *cltv; * unsigned *cltv;
* u64 *msatoshi; * u64 *msatoshi;
* const jsmntok_t *note;
* u64 *expiry; * u64 *expiry;
* *
* if (!param(cmd, buffer, params, * if (!param(cmd, buffer, params,
* p_req("cltv", json_tok_number, &cltv), * p_req("cltv", param_number, &cltv),
* p_opt("msatoshi", json_tok_u64, &msatoshi), * p_opt("msatoshi", param_u64, &msatoshi),
* p_opt("note", json_tok_tok, &note), * p_opt_def("expiry", param_u64, &expiry, 3600),
* p_opt_def("expiry", json_tok_u64, &expiry, 3600),
* NULL)) * NULL))
* return; * return;
* *
@@ -36,7 +34,7 @@
* *
* All the command handlers throughout the code use this system. * All the command handlers throughout the code use this system.
* json_invoice() is a great example. The common callbacks can be found in * json_invoice() is a great example. The common callbacks can be found in
* common/json_tok.c. Use them directly or feel free to write your own. * common/json_param.c. Use them directly or feel free to write your own.
*/ */
struct command; struct command;