diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-07-20 12:43:19 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-07-23 11:40:43 +0000 |
commit | 74be4cc4e4dbc119f9d7c4dbd739e8b9bfbb46db (patch) | |
tree | 6bb5aac12984a50b3d33881ae49a4c627a1b820c /wrap-json.c | |
parent | a37225fc0c56ef75abce79373b66e8349d427ff8 (diff) |
Enhance 'wrap_json_clone_depth' descriptionflounder_5.99.2flounder/5.99.25.99.2
Enhance 'wrap_json_clone_depth' description by adding details about
clone depth using this function.
Change-Id: Iede8fa6a697f12e8a32c1e15afdcef445edbcfe4
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'wrap-json.c')
-rw-r--r-- | wrap-json.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/wrap-json.c b/wrap-json.c index 6e60476..0633991 100644 --- a/wrap-json.c +++ b/wrap-json.c @@ -992,9 +992,13 @@ struct json_object *wrap_json_clone_depth(struct json_object *item, int depth) } /** - * Clones the 'object': returns a copy of it. But doen't clones + * Clones the 'object': returns a copy of it. But doesn't clones * the content. Synonym of wrap_json_clone_depth(object, 1). * + * Be aware that this implementation doesn't clones content that is deeper + * than 1 but it does link these contents to the original object and + * increments their use count. So, everything deeper that 1 is still available. + * * @param object the object to clone * * @return a copy of the object. |