From 33359e4a82ec4aeab9e9e42da42b24d43f4f4c5b Mon Sep 17 00:00:00 2001 From: Mark Beckwith Date: Mon, 10 Dec 2018 12:59:04 -0600 Subject: [PATCH] doc: discourage use of json_tok_tok Signed-off-by: Mark Beckwith --- common/json_tok.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/json_tok.h b/common/json_tok.h index b0d6d1898..d2b82b97c 100644 --- a/common/json_tok.h +++ b/common/json_tok.h @@ -64,6 +64,9 @@ bool json_tok_u64(struct command *cmd, const char *name, /* * Set the address of @out to @tok. Used as a callback by handlers that * want to unmarshal @tok themselves. + * + * Usage of this is discouraged. Writing a local static bespoke handler is + * preferred. */ bool json_tok_tok(struct command *cmd, const char *name, const char *buffer, const jsmntok_t * tok,