diff options
author | Stoian Ivanov <sdr@mail.bg> | 2016-09-21 01:31:00 +0300 |
---|---|---|
committer | Stoian Ivanov <sdr@mail.bg> | 2016-09-21 01:31:00 +0300 |
commit | fae09456ae516100bf9e799c8a744903c88faeba (patch) | |
tree | 2257a8ed7d972a30ad2f98b2ecd50d10fe030f0f /json_object.h | |
parent | 9f9c3326fefa67920102731e79a409d2efd28fd2 (diff) | |
download | json-c-fae09456ae516100bf9e799c8a744903c88faeba.tar.gz |
json_object_set_boolean for upstream style check
Diffstat (limited to 'json_object.h')
-rw-r--r-- | json_object.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/json_object.h b/json_object.h index b6fd917..63c3dc7 100644 --- a/json_object.h +++ b/json_object.h @@ -620,6 +620,19 @@ extern struct json_object* json_object_new_boolean(json_bool b); extern json_bool json_object_get_boolean(const struct json_object *obj); +/** Set the json_bool value of a json_object + * + * The type of obj is checked to be a json_type_boolean and FALSE is returned + * if it is not without any further actions. If type of obj is json_type_boolean + * the obect value is chaned to new_value + * + * @param obj the json_object instance + * @param new_value the value to be set + * @returns TRUE if value is set correctly + */ +extern json_bool json_object_set_boolean(struct json_object *obj,json_bool new_value); + + /* int type methods */ /** Create a new empty json_object of type json_type_int |