param: make json_tok_label non-static

Needed to do this so I could remove the implementation in
the run-param test.

Signed-off-by: Mark Beckwith <wythe@intrig.com>
This commit is contained in:
Mark Beckwith
2018-08-29 13:43:28 -05:00
committed by Rusty Russell
parent 4f81cd3852
commit 8590dbedfb
4 changed files with 28 additions and 55 deletions

View File

@@ -16,6 +16,7 @@
struct bitcoin_txid;
struct channel_id;
struct command;
struct json_escaped;
struct json_result;
struct pubkey;
struct route_hop;
@@ -53,6 +54,11 @@ bool json_tok_double(struct command *cmd, const char *name,
const char *buffer, const jsmntok_t *tok,
double **num);
/* Extract a label. It is either an escaped string or a number. */
bool json_tok_label(struct command *cmd, const char *name,
const char * buffer, const jsmntok_t *tok,
struct json_escaped **label);
/* Extract number from this (may be a string, or a number literal) */
bool json_tok_number(struct command *cmd, const char *name,
const char *buffer, const jsmntok_t *tok,