From 799cc002866c077fcc4012caa8b0d604924c7e32 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Tue, 18 Feb 2020 15:20:28 +0100 Subject: lib: add json api to encode double values this api can be used to encode double values. Signed-off-by: Philippe Guibert --- lib/json.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/json.h') diff --git a/lib/json.h b/lib/json.h index c8866c524a..afe0b175da 100644 --- a/lib/json.h +++ b/lib/json.h @@ -48,6 +48,9 @@ extern void json_object_int_add(struct json_object *obj, const char *key, int64_t i); void json_object_boolean_add(struct json_object *obj, const char *key, bool val); + +extern void json_object_double_add(struct json_object *obj, const char *key, + double i); extern void json_object_boolean_false_add(struct json_object *obj, const char *key); extern void json_object_boolean_true_add(struct json_object *obj, -- cgit v1.2.3