mirror of
https://github.com/json-c/json-c.git
synced 2026-04-02 03:49:06 +08:00
@@ -111,7 +111,7 @@ typedef enum json_type {
|
||||
/* reference counting functions */
|
||||
|
||||
/**
|
||||
* Increment the reference count of json_object, thereby grabbing shared
|
||||
* Increment the reference count of json_object, thereby grabbing shared
|
||||
* ownership of obj.
|
||||
*
|
||||
* @param obj the json_object instance
|
||||
@@ -183,7 +183,7 @@ flags);
|
||||
* Set a custom serialization function to be used when this particular object
|
||||
* is converted to a string by json_object_to_json_string.
|
||||
*
|
||||
* If a custom serializer is already set on this object, any existing
|
||||
* If a custom serializer is already set on this object, any existing
|
||||
* user_delete function is called before the new one is set.
|
||||
*
|
||||
* If to_string_func is NULL, the other parameters are ignored
|
||||
@@ -295,9 +295,9 @@ extern void json_object_object_add(struct json_object* obj, const char *key,
|
||||
THIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(struct json_object* obj,
|
||||
const char *key));
|
||||
|
||||
/** Get the json_object associated with a given object field.
|
||||
/** Get the json_object associated with a given object field.
|
||||
*
|
||||
* This returns true if the key is found, false in all other cases (including
|
||||
* This returns true if the key is found, false in all other cases (including
|
||||
* if obj isn't a json_type_object).
|
||||
*
|
||||
* *No* reference counts will be changed. There is no need to manually adjust
|
||||
@@ -307,7 +307,7 @@ THIS_FUNCTION_IS_DEPRECATED(extern struct json_object* json_object_object_get(st
|
||||
*
|
||||
* @param obj the json_object instance
|
||||
* @param key the object field name
|
||||
* @param value a pointer where to store a reference to the json_object
|
||||
* @param value a pointer where to store a reference to the json_object
|
||||
* associated with the given field name.
|
||||
*
|
||||
* It is safe to pass a NULL value.
|
||||
|
||||
Reference in New Issue
Block a user