mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
common/json: Add json_add_double.
This commit is contained in:
committed by
Christian Decker
parent
2a979a2d5c
commit
e1284b1df1
@@ -90,6 +90,9 @@ void json_add_literal(struct json_result *result, const char *fieldname,
|
||||
void json_add_snum(struct json_result *result, const char *fieldname,
|
||||
int value);
|
||||
/* '"fieldname" : value' or 'value' if fieldname is NULL */
|
||||
void json_add_double(struct json_result *result, const char *fieldname,
|
||||
double value);
|
||||
/* '"fieldname" : value' or 'value' if fieldname is NULL */
|
||||
void json_add_num(struct json_result *result, const char *fieldname,
|
||||
unsigned int value);
|
||||
/* '"fieldname" : value' or 'value' if fieldname is NULL */
|
||||
|
||||
Reference in New Issue
Block a user