mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +01:00
common/json: add a json helper for the new errcode type
This commit is contained in:
@@ -264,5 +264,9 @@ void json_add_preimage(struct json_stream *result, const char *fieldname,
|
||||
void json_add_tok(struct json_stream *result, const char *fieldname,
|
||||
const jsmntok_t *tok, const char *buffer);
|
||||
|
||||
/* Add an error code */
|
||||
void json_add_errcode(struct json_stream *result, const char *fieldname,
|
||||
errcode_t code);
|
||||
|
||||
|
||||
#endif /* LIGHTNING_COMMON_JSON_H */
|
||||
|
||||
Reference in New Issue
Block a user