Change json_object_put to return 1 if the object passed was actually freed. (or 0 if only the reference count was decremented)

This commit is contained in:
Eric Haszlakiewicz
2012-10-18 17:10:09 -05:00
parent c3d1d597ab
commit 5f4739e2eb
2 changed files with 6 additions and 4 deletions

View File

@@ -112,9 +112,9 @@ extern struct json_object* json_object_get(struct json_object *obj);
* imbalance in the reference count.
*
* @param obj the json_object instance
* @returns 1 if the object was freed.
*/
extern void json_object_put(struct json_object *obj);
int json_object_put(struct json_object *obj);
/**
* Check if the json_object is of a given type