MACSio  0.9
Multi-purpose, Application-Centric, Scalable I/O Proxy App
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Reference Counting

Functions

struct json_objectjson_object_get (struct json_object *obj)
 
int json_object_put (struct json_object *obj)
 

Detailed Description

Function Documentation

struct json_object * json_object_get ( struct json_object obj)

Increment the reference count of json_object, thereby grabbing shared ownership of obj.

Parameters
objthe json_object instance

Definition at line 147 of file json_object.c.

int json_object_put ( struct json_object obj)

Decrement the reference count of json_object and free if it reaches zero. You must have ownership of obj prior to doing this or you will cause an imbalance in the reference count.

Parameters
objthe json_object instance
Returns
1 if the object was freed.

Definition at line 155 of file json_object.c.