X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=doc%2Freference%2Fhtml%2Fjson-glib-JSON-Node.html;h=821b80c387e1b5063096539d3e4f4d62259a3677;hb=5d1beb647199b64236133d22004de48ddbcf7ead;hp=ec3294445ecd0d6393cfc81ee65d2c916a94d25d;hpb=2a1fb38cc9eba0d13a77da4b60461e135397ad1c;p=platform%2Fupstream%2Fjson-glib.git diff --git a/doc/reference/html/json-glib-JSON-Node.html b/doc/reference/html/json-glib-JSON-Node.html index ec32944..821b80c 100644 --- a/doc/reference/html/json-glib-JSON-Node.html +++ b/doc/reference/html/json-glib-JSON-Node.html @@ -3,7 +3,7 @@ JSON Node - + @@ -46,6 +46,22 @@ #define JSON_NODE_HOLDS_OBJECT (node) #define JSON_NODE_HOLDS_ARRAY (node) #define JSON_NODE_HOLDS_NULL (node) +JsonNode * json_node_alloc (void); +JsonNode * json_node_init (JsonNode *node, + JsonNodeType type); +JsonNode * json_node_init_int (JsonNode *node, + gint64 value); +JsonNode * json_node_init_double (JsonNode *node, + gdouble value); +JsonNode * json_node_init_boolean (JsonNode *node, + gboolean value); +JsonNode * json_node_init_string (JsonNode *node, + const char *value); +JsonNode * json_node_init_null (JsonNode *node); +JsonNode * json_node_init_object (JsonNode *node, + JsonObject *object); +JsonNode * json_node_init_array (JsonNode *node, + JsonArray *array); JsonNode * json_node_new (JsonNodeType type); JsonNode * json_node_copy (JsonNode *node); void json_node_free (JsonNode *node); @@ -124,8 +140,11 @@ they contain.

Indicates the content of a JsonNode.

-
+
+++ @@ -168,8 +187,11 @@ functions and never directly.

Evaluates to the JsonNodeType contained by node

-

JSON_NODE_OBJECT

+
+++

node :

a JsonNode @@ -185,8 +207,11 @@ Evaluates to the Evaluates to TRUE if the node holds type t

-
+
+++ @@ -210,8 +235,11 @@ Evaluates to TRUE if the Evaluates to TRUE if node holds a JSON_NODE_VALUE

-

node :

+
+++

node :

a JsonNode @@ -228,8 +256,11 @@ Evaluates to TRUE if no

Evaluates to TRUE if node holds a JSON_NODE_OBJECT

-
+
+++

node :

a JsonNode @@ -246,8 +277,11 @@ Evaluates to TRUE if no

Evaluates to TRUE if node holds a JSON_NODE_ARRAY

-
+
+++

node :

a JsonNode @@ -264,8 +298,11 @@ Evaluates to TRUE if no

Evaluates to TRUE if node holds a JSON_NODE_NULL

-
+
+++

node :

a JsonNode @@ -276,13 +313,341 @@ Evaluates to TRUE if no
+

json_node_alloc ()

+
JsonNode *          json_node_alloc                     (void);
+

+Allocates a new JsonNode. Use json_node_init() and its variants +to initialize the returned value. +

+
++++ + + + + +

Returns :

the newly allocated JsonNode. Use +json_node_free() to free the resources allocated by this function. [transfer full] +
+

Since 0.16

+
+
+
+

json_node_init ()

+
JsonNode *          json_node_init                      (JsonNode *node,
+                                                         JsonNodeType type);
+

+Initializes a node to a specific type. +

+

+If the node has already been initialized once, it will be reset to +the given type, and any data contained will be cleared. +

+
++++ + + + + + + + + + + + + + + +

node :

the JsonNode to initialize

type :

the type of JSON node to initialize node to

Returns :

the initialized JsonNode. [transfer none] +
+

Since 0.16

+
+
+
+

json_node_init_int ()

+
JsonNode *          json_node_init_int                  (JsonNode *node,
+                                                         gint64 value);
+

+Initializes node to JSON_NODE_VALUE and sets value into it. +

+

+If the node has already been initialized once, it will be reset to +the given type, and any data contained will be cleared. +

+
++++ + + + + + + + + + + + + + + +

node :

the JsonNode to initialize

value :

an integer

Returns :

the initialized JsonNode. [transfer none] +
+

Since 0.16

+
+
+
+

json_node_init_double ()

+
JsonNode *          json_node_init_double               (JsonNode *node,
+                                                         gdouble value);
+

+Initializes node to JSON_NODE_VALUE and sets value into it. +

+

+If the node has already been initialized once, it will be reset to +the given type, and any data contained will be cleared. +

+
++++ + + + + + + + + + + + + + + +

node :

the JsonNode to initialize

value :

a floating point value

Returns :

the initialized JsonNode. [transfer none] +
+

Since 0.16

+
+
+
+

json_node_init_boolean ()

+
JsonNode *          json_node_init_boolean              (JsonNode *node,
+                                                         gboolean value);
+

+Initializes node to JSON_NODE_VALUE and sets value into it. +

+

+If the node has already been initialized once, it will be reset to +the given type, and any data contained will be cleared. +

+
++++ + + + + + + + + + + + + + + +

node :

the JsonNode to initialize

value :

a boolean value

Returns :

the initialized JsonNode. [transfer none] +
+

Since 0.16

+
+
+
+

json_node_init_string ()

+
JsonNode *          json_node_init_string               (JsonNode *node,
+                                                         const char *value);
+

+Initializes node to JSON_NODE_VALUE and sets value into it. +

+

+If the node has already been initialized once, it will be reset to +the given type, and any data contained will be cleared. +

+
++++ + + + + + + + + + + + + + + +

node :

the JsonNode to initialize

value :

a string value. [allow-none] +

Returns :

the initialized JsonNode. [transfer none] +
+

Since 0.16

+
+
+
+

json_node_init_null ()

+
JsonNode *          json_node_init_null                 (JsonNode *node);
+

+Initializes node to JSON_NODE_NULL. +

+

+If the node has already been initialized once, it will be reset to +the given type, and any data contained will be cleared. +

+
++++ + + + + + + + + + + +

node :

the JsonNode to initialize

Returns :

the initialized JsonNode. [transfer none] +
+

Since 0.16

+
+
+
+

json_node_init_object ()

+
JsonNode *          json_node_init_object               (JsonNode *node,
+                                                         JsonObject *object);
+

+Initializes node to JSON_NODE_OBJECT and sets object into it. +

+

+This function will take a reference on object. +

+

+If the node has already been initialized once, it will be reset to +the given type, and any data contained will be cleared. +

+
++++ + + + + + + + + + + + + + + +

node :

the JsonNode to initialize

object :

the JsonObject to initialize node with, or NULL. [allow-none] +

Returns :

the initialized JsonNode. [transfer none] +
+

Since 0.16

+
+
+
+

json_node_init_array ()

+
JsonNode *          json_node_init_array                (JsonNode *node,
+                                                         JsonArray *array);
+

+Initializes node to JSON_NODE_ARRAY and sets array into it. +

+

+This function will take a reference on array. +

+

+If the node has already been initialized once, it will be reset to +the given type, and any data contained will be cleared. +

+
++++ + + + + + + + + + + + + + + +

node :

the JsonNode to initialize

array :

the JsonArray to initialize node with, or NULL. [allow-none] +

Returns :

the initialized JsonNode. [transfer none] +
+

Since 0.16

+
+
+

json_node_new ()

JsonNode *          json_node_new                       (JsonNodeType type);

Creates a new JsonNode of type.

-
+

+This is a convenience function for json_node_alloc() and json_node_init(), +and it's the equivalent of: +

+

+

+
+
+ + + + + + +
1
return json_node_init (json_node_alloc (), type);
+
+ +

+

+
+++ @@ -305,8 +670,11 @@ Creates a new node. If the node contains complex data types then the reference count of the objects is increased.

-

type :

+
+++ @@ -328,8 +696,11 @@ count of the objects is increased.

Frees the resources allocated by node.

-

node :

+
+++

node :

a JsonNode @@ -345,12 +716,15 @@ Frees the resources allocated by node.

Sets array inside node and increases the JsonArray reference count

-
+
+++ - @@ -369,12 +743,15 @@ Sets array inside

Sets array into node without increasing the JsonArray reference count.

-

node :

a JsonNode +a JsonNode initialized to JSON_NODE_ARRAY
+
+++ - @@ -392,8 +769,11 @@ Sets array into Retrieves the JsonArray stored inside a JsonNode

-

node :

a JsonNode +a JsonNode initialized to JSON_NODE_ARRAY
+
+++ @@ -416,8 +796,11 @@ Retrieves the JsonArray stored inside a JsonNode and returns it with its reference count increased by one.

-

node :

+
+++ @@ -441,12 +824,15 @@ count increased. [objects inside node. The reference count of object is increased.

-

node :

+
+++ - @@ -465,12 +851,15 @@ Sets objects inside object inside node. The reference count of object is not increased.

-

node :

a JsonNode +a JsonNode initialized to JSON_NODE_OBJECT
+
+++ - @@ -488,8 +877,11 @@ Sets object inside Retrieves the JsonObject stored inside a JsonNode

-

node :

a JsonNode +a JsonNode initialized to JSON_NODE_OBJECT
+
+++ @@ -512,8 +904,11 @@ Retrieves the JsonObject inside node. The reference count of the returned object is increased.

-

node :

+
+++ @@ -536,12 +931,15 @@ the returned object is increased.

Sets value inside node. The passed GValue is copied into the JsonNode

-

node :

+
+++ - @@ -560,8 +958,11 @@ Sets value inside Retrieves a value from a JsonNode and copies into value. When done using it, call g_value_unset() on the GValue.

-

node :

a JsonNode +a JsonNode initialized to JSON_NODE_VALUE
+
+++ @@ -585,8 +986,11 @@ using it, call g_value_unset() on the value as the boolean content of the node, replacing any existing content.

-

node :

+
+++ @@ -607,8 +1011,11 @@ content.

Gets the boolean value stored inside a JsonNode

-

node :

+
+++ @@ -631,8 +1038,11 @@ Gets the boolean value stored inside a value as the double content of the node, replacing any existing content.

-

node :

+
+++ @@ -653,8 +1063,11 @@ content.

Gets the double value stored inside a JsonNode

-

node :

+
+++ @@ -677,8 +1090,11 @@ Gets the double value stored inside a value as the integer content of the node, replacing any existing content.

-

node :

+
+++ @@ -699,8 +1115,11 @@ content.

Gets the integer value stored inside a JsonNode

-

node :

+
+++ @@ -723,12 +1142,15 @@ Gets the integer value stored inside a value as the string content of the node, replacing any existing content.

-

node :

+
+++ - @@ -745,8 +1167,11 @@ content.

Gets the string value stored inside a JsonNode

-

node :

a JsonNode of type JSON_NODE_VALUE +a JsonNode initialized to JSON_NODE_VALUE
+
+++ @@ -767,8 +1192,11 @@ Gets the string value stored inside a JsonNode

-

node :

+
+++ @@ -792,8 +1220,11 @@ of the Sets the parent JsonNode of node

-

node :

+
+++ @@ -816,8 +1247,11 @@ Sets the parent JsonNode of node.

-

node :

+
+++ @@ -840,8 +1274,11 @@ the root node. [node.

-

node :

+
+++ @@ -863,8 +1300,11 @@ is owned by the node and should never be modified or freed

Returns the GType of the payload of the node.

-

node :

+
+++ @@ -886,8 +1326,11 @@ Returns the GType of the payload of the node.

Retrieves the JsonNodeType of node

-

node :

+
+++ @@ -916,8 +1359,11 @@ Checks whether node is a

-

node :

+
+++

node :