clutter 3.1.1-x86-mingw32 → 3.1.2-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -10
- data/dependency-check/Rakefile +40 -0
- data/test/clutter-test-utils.rb +0 -4
- data/test/run-test.rb +1 -1
- data/vendor/local/bin/json-glib-format.exe +0 -0
- data/vendor/local/bin/json-glib-validate.exe +0 -0
- data/vendor/local/bin/libclutter-1.0-0.dll +0 -0
- data/vendor/local/bin/libcogl-20.dll +0 -0
- data/vendor/local/bin/libcogl-pango-20.dll +0 -0
- data/vendor/local/bin/libcogl-path-20.dll +0 -0
- data/vendor/local/bin/libjson-glib-1.0-0.dll +0 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-gobject.h +4 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-version.h +3 -3
- data/vendor/local/lib/girepository-1.0/Json-1.0.typelib +0 -0
- data/vendor/local/lib/libclutter-1.0.dll.a +0 -0
- data/vendor/local/lib/libcogl-pango.dll.a +0 -0
- data/vendor/local/lib/libcogl-path.dll.a +0 -0
- data/vendor/local/lib/libcogl.dll.a +0 -0
- data/vendor/local/lib/libjson-glib-1.0.dll.a +0 -0
- data/vendor/local/lib/libjson-glib-1.0.la +1 -1
- data/vendor/local/lib/pkgconfig/json-glib-1.0.pc +2 -2
- data/vendor/local/share/gir-1.0/Cogl-1.0.gir +1 -1
- data/vendor/local/share/gir-1.0/Cogl-2.0.gir +4 -4
- data/vendor/local/share/gir-1.0/Json-1.0.gir +42 -23
- data/vendor/local/share/gtk-doc/html/json-glib/JsonBuilder.html +43 -38
- data/vendor/local/share/gtk-doc/html/json-glib/JsonGenerator.html +60 -55
- data/vendor/local/share/gtk-doc/html/json-glib/JsonParser.html +118 -113
- data/vendor/local/share/gtk-doc/html/json-glib/JsonPath.html +28 -23
- data/vendor/local/share/gtk-doc/html/json-glib/JsonReader.html +82 -77
- data/vendor/local/share/gtk-doc/html/json-glib/annotation-glossary.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/ch01.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/ch02.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/ch03.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/ch04.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/ch06.html +4 -4
- data/vendor/local/share/gtk-doc/html/json-glib/index.html +23 -5
- data/vendor/local/share/gtk-doc/html/json-glib/ix01.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/ix02.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/ix03.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/ix04.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/ix05.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/ix06.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/ix07.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/ix08.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/ix09.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/ix10.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/ix11.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/json-advanced.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/json-base.html +3 -3
- data/vendor/local/share/gtk-doc/html/json-glib/json-format-tool.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Boxed-Types-Serialization.html +58 -53
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-GObject-Serialization.html +62 -57
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Array.html +85 -80
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-GVariant-Integration.html +56 -51
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Node.html +169 -144
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Object.html +116 -111
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Serializable-Interface.html +66 -61
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Utility-API.html +14 -9
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Versioning-information.html +15 -10
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib.devhelp2 +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/{json-glib.html → json-overview.html} +6 -2
- data/vendor/local/share/gtk-doc/html/json-glib/json-streams.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/json-tools.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/json-validate-tool.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/license.html +1 -1
- data/vendor/local/share/gtk-doc/html/json-glib/tools.html +1 -1
- data/vendor/local/share/locale/as/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/fur/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ky/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/tg/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/json-glib-1.0.mo +0 -0
- data/vendor/local/share/man/man1/json-glib-format.1 +2 -2
- data/vendor/local/share/man/man1/json-glib-validate.1 +2 -2
- metadata +15 -14
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>JSON GVariant Integration: JSON-GLib Reference Manual</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
|
7
7
|
<link rel="home" href="index.html" title="JSON-GLib Reference Manual">
|
8
8
|
<link rel="up" href="json-advanced.html" title="Part IV. JSON-GLib Advanced API">
|
9
9
|
<link rel="prev" href="json-glib-Boxed-Types-Serialization.html" title="Boxed Types Serialization">
|
@@ -33,7 +33,7 @@
|
|
33
33
|
</tr></table></div>
|
34
34
|
<div class="refsect1">
|
35
35
|
<a name="json-glib-JSON-GVariant-Integration.functions"></a><h2>Functions</h2>
|
36
|
-
<div class="informaltable"><table width="100%" border="0">
|
36
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
37
37
|
<colgroup>
|
38
38
|
<col width="150px" class="functions_return">
|
39
39
|
<col class="functions_name">
|
@@ -49,7 +49,7 @@
|
|
49
49
|
</tr>
|
50
50
|
<tr>
|
51
51
|
<td class="function_type">
|
52
|
-
<span class="returnvalue">gchar</span> *
|
52
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
53
53
|
</td>
|
54
54
|
<td class="function_name">
|
55
55
|
<a class="link" href="json-glib-JSON-GVariant-Integration.html#json-gvariant-serialize-data" title="json_gvariant_serialize_data ()">json_gvariant_serialize_data</a> <span class="c_punctuation">()</span>
|
@@ -57,7 +57,7 @@
|
|
57
57
|
</tr>
|
58
58
|
<tr>
|
59
59
|
<td class="function_type">
|
60
|
-
<span class="returnvalue">GVariant</span> *
|
60
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html#GVariant"><span class="returnvalue">GVariant</span></a> *
|
61
61
|
</td>
|
62
62
|
<td class="function_name">
|
63
63
|
<a class="link" href="json-glib-JSON-GVariant-Integration.html#json-gvariant-deserialize" title="json_gvariant_deserialize ()">json_gvariant_deserialize</a> <span class="c_punctuation">()</span>
|
@@ -65,7 +65,7 @@
|
|
65
65
|
</tr>
|
66
66
|
<tr>
|
67
67
|
<td class="function_type">
|
68
|
-
<span class="returnvalue">GVariant</span> *
|
68
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html#GVariant"><span class="returnvalue">GVariant</span></a> *
|
69
69
|
</td>
|
70
70
|
<td class="function_name">
|
71
71
|
<a class="link" href="json-glib-JSON-GVariant-Integration.html#json-gvariant-deserialize-data" title="json_gvariant_deserialize_data ()">json_gvariant_deserialize_data</a> <span class="c_punctuation">()</span>
|
@@ -75,45 +75,50 @@
|
|
75
75
|
</table></div>
|
76
76
|
</div>
|
77
77
|
<div class="refsect1">
|
78
|
+
<a name="json-glib-JSON-GVariant-Integration.includes"></a><h2>Includes</h2>
|
79
|
+
<pre class="synopsis">#include <json-glib/json-glib.h>
|
80
|
+
</pre>
|
81
|
+
</div>
|
82
|
+
<div class="refsect1">
|
78
83
|
<a name="json-glib-JSON-GVariant-Integration.description"></a><h2>Description</h2>
|
79
84
|
<p>Use <a class="link" href="json-glib-JSON-GVariant-Integration.html#json-gvariant-serialize" title="json_gvariant_serialize ()"><code class="function">json_gvariant_serialize()</code></a> and <a class="link" href="json-glib-JSON-GVariant-Integration.html#json-gvariant-serialize-data" title="json_gvariant_serialize_data ()"><code class="function">json_gvariant_serialize_data()</code></a> to
|
80
|
-
convert from any <span class="type">GVariant</span> value to a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> tree or its string
|
85
|
+
convert from any <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> value to a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> tree or its string
|
81
86
|
representation.</p>
|
82
87
|
<p>Use <a class="link" href="json-glib-JSON-GVariant-Integration.html#json-gvariant-deserialize" title="json_gvariant_deserialize ()"><code class="function">json_gvariant_deserialize()</code></a> and <a class="link" href="json-glib-JSON-GVariant-Integration.html#json-gvariant-deserialize-data" title="json_gvariant_deserialize_data ()"><code class="function">json_gvariant_deserialize_data()</code></a> to
|
83
|
-
obtain the <span class="type">GVariant</span> value from a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> tree or directly from a JSON
|
88
|
+
obtain the <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> value from a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> tree or directly from a JSON
|
84
89
|
string.</p>
|
85
|
-
<p>Since many <span class="type">GVariant</span> data types cannot be directly represented as
|
86
|
-
JSON, a <span class="type">GVariant</span> type string (signature) should be provided to these
|
90
|
+
<p>Since many <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> data types cannot be directly represented as
|
91
|
+
JSON, a <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> type string (signature) should be provided to these
|
87
92
|
methods in order to obtain a correct, type-contrained result.
|
88
93
|
If no signature is provided, conversion can still be done, but the
|
89
|
-
resulting <span class="type">GVariant</span> value will be "guessed" from the JSON data types
|
94
|
+
resulting <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> value will be "guessed" from the JSON data types
|
90
95
|
using the following rules:</p>
|
91
96
|
<div class="refsect3">
|
92
|
-
<a name="id-1.5.5.
|
97
|
+
<a name="id-1.5.5.5.5"></a><h4>Strings</h4>
|
93
98
|
<p>JSON strings map to GVariant <code class="literal">(s)</code>.</p>
|
94
99
|
</div>
|
95
100
|
<div class="refsect3">
|
96
|
-
<a name="id-1.5.5.
|
101
|
+
<a name="id-1.5.5.5.6"></a><h4>Integers</h4>
|
97
102
|
<p>JSON integers map to GVariant int64 <code class="literal">(x)</code>.</p>
|
98
103
|
</div>
|
99
104
|
<div class="refsect3">
|
100
|
-
<a name="id-1.5.5.
|
105
|
+
<a name="id-1.5.5.5.7"></a><h4>Booleans</h4>
|
101
106
|
<p>JSON booleans map to GVariant boolean <code class="literal">(b)</code>.</p>
|
102
107
|
</div>
|
103
108
|
<div class="refsect3">
|
104
|
-
<a name="id-1.5.5.
|
109
|
+
<a name="id-1.5.5.5.8"></a><h4>Numbers</h4>
|
105
110
|
<p>JSON numbers map to GVariant double <code class="literal">(d)</code>.</p>
|
106
111
|
</div>
|
107
112
|
<div class="refsect3">
|
108
|
-
<a name="id-1.5.5.
|
113
|
+
<a name="id-1.5.5.5.9"></a><h4>Arrays</h4>
|
109
114
|
<p>JSON arrays map to GVariant arrays of variants <code class="literal">(av)</code>.</p>
|
110
115
|
</div>
|
111
116
|
<div class="refsect3">
|
112
|
-
<a name="id-1.5.5.
|
117
|
+
<a name="id-1.5.5.5.10"></a><h4>Objects</h4>
|
113
118
|
<p>JSON objects map to GVariant dictionaries of string to variants <code class="literal">(a{sv})</code>.</p>
|
114
119
|
</div>
|
115
120
|
<div class="refsect3">
|
116
|
-
<a name="id-1.5.5.
|
121
|
+
<a name="id-1.5.5.5.11"></a><h4>Null values</h4>
|
117
122
|
<p>JSON null values map to GVariant maybe variants <code class="literal">(mv)</code>.</p>
|
118
123
|
</div>
|
119
124
|
</div>
|
@@ -122,12 +127,12 @@ using the following rules:</p>
|
|
122
127
|
<div class="refsect2">
|
123
128
|
<a name="json-gvariant-serialize"></a><h3>json_gvariant_serialize ()</h3>
|
124
129
|
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
125
|
-
json_gvariant_serialize (<em class="parameter"><code><span class="type">GVariant</span> *variant</code></em>);</pre>
|
130
|
+
json_gvariant_serialize (<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> *variant</code></em>);</pre>
|
126
131
|
<p>Converts <em class="parameter"><code>variant</code></em>
|
127
132
|
to a JSON tree.</p>
|
128
133
|
<div class="refsect3">
|
129
134
|
<a name="json-gvariant-serialize.parameters"></a><h4>Parameters</h4>
|
130
|
-
<div class="informaltable"><table width="100%" border="0">
|
135
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
131
136
|
<colgroup>
|
132
137
|
<col width="150px" class="parameters_name">
|
133
138
|
<col class="parameters_description">
|
@@ -135,7 +140,7 @@ json_gvariant_serialize (<em class="parameter"><code><span class="type">GVariant
|
|
135
140
|
</colgroup>
|
136
141
|
<tbody><tr>
|
137
142
|
<td class="parameter_name"><p>variant</p></td>
|
138
|
-
<td class="parameter_description"><p>A <span class="type">GVariant</span> to convert</p></td>
|
143
|
+
<td class="parameter_description"><p>A <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> to convert</p></td>
|
139
144
|
<td class="parameter_annotations"> </td>
|
140
145
|
</tr></tbody>
|
141
146
|
</table></div>
|
@@ -152,16 +157,16 @@ JSON data structure obtained from <em class="parameter"><code>variant</code></em
|
|
152
157
|
<hr>
|
153
158
|
<div class="refsect2">
|
154
159
|
<a name="json-gvariant-serialize-data"></a><h3>json_gvariant_serialize_data ()</h3>
|
155
|
-
<pre class="programlisting"><span class="returnvalue">gchar</span> *
|
156
|
-
json_gvariant_serialize_data (<em class="parameter"><code><span class="type">GVariant</span> *variant</code></em>,
|
157
|
-
<em class="parameter"><code><span class="type">gsize</span> *length</code></em>);</pre>
|
160
|
+
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
161
|
+
json_gvariant_serialize_data (<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> *variant</code></em>,
|
162
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> *length</code></em>);</pre>
|
158
163
|
<p>Converts <em class="parameter"><code>variant</code></em>
|
159
164
|
to its JSON encoded string representation. This method
|
160
165
|
is actually a helper function. It uses <a class="link" href="json-glib-JSON-GVariant-Integration.html#json-gvariant-serialize" title="json_gvariant_serialize ()"><code class="function">json_gvariant_serialize()</code></a> to obtain the
|
161
166
|
JSON tree, and then <a class="link" href="JsonGenerator.html" title="JsonGenerator"><span class="type">JsonGenerator</span></a> to stringify it.</p>
|
162
167
|
<div class="refsect3">
|
163
168
|
<a name="json-gvariant-serialize-data.parameters"></a><h4>Parameters</h4>
|
164
|
-
<div class="informaltable"><table width="100%" border="0">
|
169
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
165
170
|
<colgroup>
|
166
171
|
<col width="150px" class="parameters_name">
|
167
172
|
<col class="parameters_description">
|
@@ -170,13 +175,13 @@ JSON tree, and then <a class="link" href="JsonGenerator.html" title="JsonGenerat
|
|
170
175
|
<tbody>
|
171
176
|
<tr>
|
172
177
|
<td class="parameter_name"><p>variant</p></td>
|
173
|
-
<td class="parameter_description"><p>A <span class="type">GVariant</span> to convert</p></td>
|
178
|
+
<td class="parameter_description"><p>A <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> to convert</p></td>
|
174
179
|
<td class="parameter_annotations"> </td>
|
175
180
|
</tr>
|
176
181
|
<tr>
|
177
182
|
<td class="parameter_name"><p>length</p></td>
|
178
183
|
<td class="parameter_description"><p> Return location for the length of the returned
|
179
|
-
string, or <code class="literal">NULL</code>. </p></td>
|
184
|
+
string, or <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
180
185
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
181
186
|
</tr>
|
182
187
|
</tbody>
|
@@ -194,29 +199,29 @@ string, or <code class="literal">NULL</code>. </p></td>
|
|
194
199
|
<hr>
|
195
200
|
<div class="refsect2">
|
196
201
|
<a name="json-gvariant-deserialize"></a><h3>json_gvariant_deserialize ()</h3>
|
197
|
-
<pre class="programlisting"><span class="returnvalue">GVariant</span> *
|
202
|
+
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html#GVariant"><span class="returnvalue">GVariant</span></a> *
|
198
203
|
json_gvariant_deserialize (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *json_node</code></em>,
|
199
|
-
<em class="parameter"><code>const <span class="type">gchar</span> *signature</code></em>,
|
200
|
-
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
|
204
|
+
<em class="parameter"><code>const <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *signature</code></em>,
|
205
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
201
206
|
<p>Converts a JSON data structure to a GVariant value using <em class="parameter"><code>signature</code></em>
|
202
207
|
to
|
203
|
-
resolve ambiguous data types. If no error occurs, the resulting <span class="type">GVariant</span>
|
208
|
+
resolve ambiguous data types. If no error occurs, the resulting <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a>
|
204
209
|
is guaranteed to conform to <em class="parameter"><code>signature</code></em>
|
205
210
|
.</p>
|
206
211
|
<p>If <em class="parameter"><code>signature</code></em>
|
207
|
-
is not <code class="literal">NULL</code> but does not represent a valid GVariant type
|
208
|
-
string, <code class="literal">NULL</code> is returned and error is set to <code class="literal">G_IO_ERROR_INVALID_ARGUMENT</code>.
|
212
|
+
is not <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> but does not represent a valid GVariant type
|
213
|
+
string, <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned and error is set to <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html#G-IO-ERROR-INVALID-ARGUMENT:CAPS"><code class="literal">G_IO_ERROR_INVALID_ARGUMENT</code></a>.
|
209
214
|
If a <em class="parameter"><code>signature</code></em>
|
210
215
|
is provided but the JSON structure cannot be mapped to it,
|
211
|
-
<code class="literal">NULL</code> is returned and error is set to <code class="literal">G_IO_ERROR_INVALID_DATA</code>.
|
216
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned and error is set to <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html#G-IO-ERROR-INVALID-DATA:CAPS"><code class="literal">G_IO_ERROR_INVALID_DATA</code></a>.
|
212
217
|
If <em class="parameter"><code>signature</code></em>
|
213
|
-
is <code class="literal">NULL</code>, the conversion is done based strictly on the types
|
218
|
+
is <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the conversion is done based strictly on the types
|
214
219
|
in the JSON nodes.</p>
|
215
220
|
<p>The returned variant has a floating reference that will need to be sunk
|
216
221
|
by the caller code.</p>
|
217
222
|
<div class="refsect3">
|
218
223
|
<a name="json-gvariant-deserialize.parameters"></a><h4>Parameters</h4>
|
219
|
-
<div class="informaltable"><table width="100%" border="0">
|
224
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
220
225
|
<colgroup>
|
221
226
|
<col width="150px" class="parameters_name">
|
222
227
|
<col class="parameters_description">
|
@@ -230,12 +235,12 @@ by the caller code.</p>
|
|
230
235
|
</tr>
|
231
236
|
<tr>
|
232
237
|
<td class="parameter_name"><p>signature</p></td>
|
233
|
-
<td class="parameter_description"><p> A valid <span class="type">GVariant</span> type string, or <code class="literal">NULL</code>. </p></td>
|
238
|
+
<td class="parameter_description"><p> A valid <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> type string, or <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
234
239
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
235
240
|
</tr>
|
236
241
|
<tr>
|
237
242
|
<td class="parameter_name"><p>error</p></td>
|
238
|
-
<td class="parameter_description"><p>A pointer to a <span class="type">GError</span></p></td>
|
243
|
+
<td class="parameter_description"><p>A pointer to a <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a></p></td>
|
239
244
|
<td class="parameter_annotations"> </td>
|
240
245
|
</tr>
|
241
246
|
</tbody>
|
@@ -243,9 +248,9 @@ by the caller code.</p>
|
|
243
248
|
</div>
|
244
249
|
<div class="refsect3">
|
245
250
|
<a name="json-gvariant-deserialize.returns"></a><h4>Returns</h4>
|
246
|
-
<p> A newly created, floating <span class="type">GVariant</span>
|
251
|
+
<p> A newly created, floating <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a>
|
247
252
|
compliant with <em class="parameter"><code>signature</code></em>
|
248
|
-
, or <code class="literal">NULL</code> on error. </p>
|
253
|
+
, or <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on error. </p>
|
249
254
|
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
250
255
|
</div>
|
251
256
|
<p class="since">Since: <a class="link" href="ix08.html#api-index-0.14">0.14</a></p>
|
@@ -253,12 +258,12 @@ compliant with <em class="parameter"><code>signature</code></em>
|
|
253
258
|
<hr>
|
254
259
|
<div class="refsect2">
|
255
260
|
<a name="json-gvariant-deserialize-data"></a><h3>json_gvariant_deserialize_data ()</h3>
|
256
|
-
<pre class="programlisting"><span class="returnvalue">GVariant</span> *
|
257
|
-
json_gvariant_deserialize_data (<em class="parameter"><code>const <span class="type">gchar</span> *json</code></em>,
|
258
|
-
<em class="parameter"><code><span class="type">gssize</span> length</code></em>,
|
259
|
-
<em class="parameter"><code>const <span class="type">gchar</span> *signature</code></em>,
|
260
|
-
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
|
261
|
-
<p>Converts a JSON string to a <span class="type">GVariant</span> value. This method works exactly
|
261
|
+
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html#GVariant"><span class="returnvalue">GVariant</span></a> *
|
262
|
+
json_gvariant_deserialize_data (<em class="parameter"><code>const <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *json</code></em>,
|
263
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gssize"><span class="type">gssize</span></a> length</code></em>,
|
264
|
+
<em class="parameter"><code>const <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *signature</code></em>,
|
265
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
266
|
+
<p>Converts a JSON string to a <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> value. This method works exactly
|
262
267
|
like <a class="link" href="json-glib-JSON-GVariant-Integration.html#json-gvariant-deserialize" title="json_gvariant_deserialize ()"><code class="function">json_gvariant_deserialize()</code></a>, but takes a JSON encoded string instead.
|
263
268
|
The string is first converted to a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> using <a class="link" href="JsonParser.html" title="JsonParser"><span class="type">JsonParser</span></a>, and then
|
264
269
|
<a class="link" href="json-glib-JSON-GVariant-Integration.html#json-gvariant-deserialize" title="json_gvariant_deserialize ()"><code class="function">json_gvariant_deserialize()</code></a> is called.</p>
|
@@ -266,7 +271,7 @@ The string is first converted to a <a class="link" href="json-glib-JSON-Node.htm
|
|
266
271
|
by the caller code.</p>
|
267
272
|
<div class="refsect3">
|
268
273
|
<a name="json-gvariant-deserialize-data.parameters"></a><h4>Parameters</h4>
|
269
|
-
<div class="informaltable"><table width="100%" border="0">
|
274
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
270
275
|
<colgroup>
|
271
276
|
<col width="150px" class="parameters_name">
|
272
277
|
<col class="parameters_description">
|
@@ -281,17 +286,17 @@ by the caller code.</p>
|
|
281
286
|
<tr>
|
282
287
|
<td class="parameter_name"><p>length</p></td>
|
283
288
|
<td class="parameter_description"><p>The length of <em class="parameter"><code>json</code></em>
|
284
|
-
, or -1 if <code class="literal">NULL</code>-terminated</p></td>
|
289
|
+
, or -1 if <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated</p></td>
|
285
290
|
<td class="parameter_annotations"> </td>
|
286
291
|
</tr>
|
287
292
|
<tr>
|
288
293
|
<td class="parameter_name"><p>signature</p></td>
|
289
|
-
<td class="parameter_description"><p> A valid <span class="type">GVariant</span> type string, or <code class="literal">NULL</code>. </p></td>
|
294
|
+
<td class="parameter_description"><p> A valid <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> type string, or <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
290
295
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
291
296
|
</tr>
|
292
297
|
<tr>
|
293
298
|
<td class="parameter_name"><p>error</p></td>
|
294
|
-
<td class="parameter_description"><p>A pointer to a <span class="type">GError</span></p></td>
|
299
|
+
<td class="parameter_description"><p>A pointer to a <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a></p></td>
|
295
300
|
<td class="parameter_annotations"> </td>
|
296
301
|
</tr>
|
297
302
|
</tbody>
|
@@ -299,9 +304,9 @@ by the caller code.</p>
|
|
299
304
|
</div>
|
300
305
|
<div class="refsect3">
|
301
306
|
<a name="json-gvariant-deserialize-data.returns"></a><h4>Returns</h4>
|
302
|
-
<p> A newly created, floating <span class="type">GVariant</span> compliant
|
307
|
+
<p> A newly created, floating <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> compliant
|
303
308
|
with <em class="parameter"><code>signature</code></em>
|
304
|
-
, or <code class="literal">NULL</code> on error. </p>
|
309
|
+
, or <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on error. </p>
|
305
310
|
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
306
311
|
</div>
|
307
312
|
<p class="since">Since: <a class="link" href="ix08.html#api-index-0.14">0.14</a></p>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>JSON Node: JSON-GLib Reference Manual</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
|
7
7
|
<link rel="home" href="index.html" title="JSON-GLib Reference Manual">
|
8
8
|
<link rel="up" href="ch01.html" title="Data Types">
|
9
9
|
<link rel="prev" href="ch01.html" title="Data Types">
|
@@ -34,7 +34,7 @@
|
|
34
34
|
</tr></table></div>
|
35
35
|
<div class="refsect1">
|
36
36
|
<a name="json-glib-JSON-Node.functions"></a><h2>Functions</h2>
|
37
|
-
<div class="informaltable"><table width="100%" border="0">
|
37
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
38
38
|
<colgroup>
|
39
39
|
<col width="150px" class="functions_return">
|
40
40
|
<col class="functions_name">
|
@@ -190,7 +190,7 @@
|
|
190
190
|
</tr>
|
191
191
|
<tr>
|
192
192
|
<td class="function_type">
|
193
|
-
<span class="returnvalue">gboolean</span>
|
193
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
194
194
|
</td>
|
195
195
|
<td class="function_name">
|
196
196
|
<a class="link" href="json-glib-JSON-Node.html#json-node-is-immutable" title="json_node_is_immutable ()">json_node_is_immutable</a> <span class="c_punctuation">()</span>
|
@@ -206,7 +206,7 @@
|
|
206
206
|
</tr>
|
207
207
|
<tr>
|
208
208
|
<td class="function_type">
|
209
|
-
<span class="returnvalue">guint</span>
|
209
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
210
210
|
</td>
|
211
211
|
<td class="function_name">
|
212
212
|
<a class="link" href="json-glib-JSON-Node.html#json-node-hash" title="json_node_hash ()">json_node_hash</a> <span class="c_punctuation">()</span>
|
@@ -214,7 +214,7 @@
|
|
214
214
|
</tr>
|
215
215
|
<tr>
|
216
216
|
<td class="function_type">
|
217
|
-
<span class="returnvalue">gboolean</span>
|
217
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
218
218
|
</td>
|
219
219
|
<td class="function_name">
|
220
220
|
<a class="link" href="json-glib-JSON-Node.html#json-node-equal" title="json_node_equal ()">json_node_equal</a> <span class="c_punctuation">()</span>
|
@@ -310,7 +310,7 @@
|
|
310
310
|
</tr>
|
311
311
|
<tr>
|
312
312
|
<td class="function_type">
|
313
|
-
<span class="returnvalue">gboolean</span>
|
313
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
314
314
|
</td>
|
315
315
|
<td class="function_name">
|
316
316
|
<a class="link" href="json-glib-JSON-Node.html#json-node-get-boolean" title="json_node_get_boolean ()">json_node_get_boolean</a> <span class="c_punctuation">()</span>
|
@@ -326,7 +326,7 @@
|
|
326
326
|
</tr>
|
327
327
|
<tr>
|
328
328
|
<td class="function_type">
|
329
|
-
<span class="returnvalue">gdouble</span>
|
329
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>
|
330
330
|
</td>
|
331
331
|
<td class="function_name">
|
332
332
|
<a class="link" href="json-glib-JSON-Node.html#json-node-get-double" title="json_node_get_double ()">json_node_get_double</a> <span class="c_punctuation">()</span>
|
@@ -342,7 +342,7 @@
|
|
342
342
|
</tr>
|
343
343
|
<tr>
|
344
344
|
<td class="function_type">
|
345
|
-
<span class="returnvalue">gint64</span>
|
345
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="returnvalue">gint64</span></a>
|
346
346
|
</td>
|
347
347
|
<td class="function_name">
|
348
348
|
<a class="link" href="json-glib-JSON-Node.html#json-node-get-int" title="json_node_get_int ()">json_node_get_int</a> <span class="c_punctuation">()</span>
|
@@ -357,7 +357,7 @@
|
|
357
357
|
</td>
|
358
358
|
</tr>
|
359
359
|
<tr>
|
360
|
-
<td class="function_type">const <span class="returnvalue">gchar</span> *
|
360
|
+
<td class="function_type">const <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
361
361
|
</td>
|
362
362
|
<td class="function_name">
|
363
363
|
<a class="link" href="json-glib-JSON-Node.html#json-node-get-string" title="json_node_get_string ()">json_node_get_string</a> <span class="c_punctuation">()</span>
|
@@ -365,7 +365,7 @@
|
|
365
365
|
</tr>
|
366
366
|
<tr>
|
367
367
|
<td class="function_type">
|
368
|
-
<span class="returnvalue">gchar</span> *
|
368
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
369
369
|
</td>
|
370
370
|
<td class="function_name">
|
371
371
|
<a class="link" href="json-glib-JSON-Node.html#json-node-dup-string" title="json_node_dup_string ()">json_node_dup_string</a> <span class="c_punctuation">()</span>
|
@@ -388,7 +388,7 @@
|
|
388
388
|
</td>
|
389
389
|
</tr>
|
390
390
|
<tr>
|
391
|
-
<td class="function_type">const <span class="returnvalue">gchar</span> *
|
391
|
+
<td class="function_type">const <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
392
392
|
</td>
|
393
393
|
<td class="function_name">
|
394
394
|
<a class="link" href="json-glib-JSON-Node.html#json-node-type-name" title="json_node_type_name ()">json_node_type_name</a> <span class="c_punctuation">()</span>
|
@@ -396,7 +396,7 @@
|
|
396
396
|
</tr>
|
397
397
|
<tr>
|
398
398
|
<td class="function_type">
|
399
|
-
<span class="returnvalue">GType</span>
|
399
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a>
|
400
400
|
</td>
|
401
401
|
<td class="function_name">
|
402
402
|
<a class="link" href="json-glib-JSON-Node.html#json-node-get-value-type" title="json_node_get_value_type ()">json_node_get_value_type</a> <span class="c_punctuation">()</span>
|
@@ -412,7 +412,7 @@
|
|
412
412
|
</tr>
|
413
413
|
<tr>
|
414
414
|
<td class="function_type">
|
415
|
-
<span class="returnvalue">gboolean</span>
|
415
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
416
416
|
</td>
|
417
417
|
<td class="function_name">
|
418
418
|
<a class="link" href="json-glib-JSON-Node.html#json-node-is-null" title="json_node_is_null ()">json_node_is_null</a> <span class="c_punctuation">()</span>
|
@@ -420,7 +420,7 @@
|
|
420
420
|
</tr>
|
421
421
|
<tr>
|
422
422
|
<td class="function_type">
|
423
|
-
<span class="returnvalue">guint</span>
|
423
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
424
424
|
</td>
|
425
425
|
<td class="function_name">
|
426
426
|
<a class="link" href="json-glib-JSON-Node.html#json-string-hash" title="json_string_hash ()">json_string_hash</a> <span class="c_punctuation">()</span>
|
@@ -428,7 +428,7 @@
|
|
428
428
|
</tr>
|
429
429
|
<tr>
|
430
430
|
<td class="function_type">
|
431
|
-
<span class="returnvalue">gboolean</span>
|
431
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
432
432
|
</td>
|
433
433
|
<td class="function_name">
|
434
434
|
<a class="link" href="json-glib-JSON-Node.html#json-string-equal" title="json_string_equal ()">json_string_equal</a> <span class="c_punctuation">()</span>
|
@@ -436,7 +436,7 @@
|
|
436
436
|
</tr>
|
437
437
|
<tr>
|
438
438
|
<td class="function_type">
|
439
|
-
<span class="returnvalue">gint</span>
|
439
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
|
440
440
|
</td>
|
441
441
|
<td class="function_name">
|
442
442
|
<a class="link" href="json-glib-JSON-Node.html#json-string-compare" title="json_string_compare ()">json_string_compare</a> <span class="c_punctuation">()</span>
|
@@ -447,7 +447,7 @@
|
|
447
447
|
</div>
|
448
448
|
<a name="JsonNode"></a><div class="refsect1">
|
449
449
|
<a name="json-glib-JSON-Node.other"></a><h2>Types and Values</h2>
|
450
|
-
<div class="informaltable"><table width="100%" border="0">
|
450
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
451
451
|
<colgroup>
|
452
452
|
<col width="150px" class="name">
|
453
453
|
<col class="description">
|
@@ -466,11 +466,16 @@
|
|
466
466
|
</div>
|
467
467
|
<div class="refsect1">
|
468
468
|
<a name="json-glib-JSON-Node.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
469
|
-
<pre class="screen"> GBoxed
|
469
|
+
<pre class="screen"> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html">GBoxed</a>
|
470
470
|
<span class="lineart">╰──</span> JsonNode
|
471
471
|
</pre>
|
472
472
|
</div>
|
473
473
|
<div class="refsect1">
|
474
|
+
<a name="json-glib-JSON-Node.includes"></a><h2>Includes</h2>
|
475
|
+
<pre class="synopsis">#include <json-glib/json-glib.h>
|
476
|
+
</pre>
|
477
|
+
</div>
|
478
|
+
<div class="refsect1">
|
474
479
|
<a name="json-glib-JSON-Node.description"></a><h2>Description</h2>
|
475
480
|
<p>A <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> is a generic container of elements inside a JSON stream.
|
476
481
|
It can contain fundamental types (integers, booleans, floating point
|
@@ -478,8 +483,8 @@ numbers, strings) and complex types (arrays and objects).</p>
|
|
478
483
|
<p>When parsing a JSON data stream you extract the root node and walk
|
479
484
|
the node tree by retrieving the type of data contained inside the
|
480
485
|
node with the <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-TYPE:CAPS" title="JSON_NODE_TYPE()"><code class="literal">JSON_NODE_TYPE</code></a> macro. If the node contains a fundamental
|
481
|
-
type you can retrieve a copy of the <span class="type">GValue</span> holding it with the
|
482
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-get-value" title="json_node_get_value ()"><code class="function">json_node_get_value()</code></a> function, and then use the <span class="type">GValue</span> API to extract
|
486
|
+
type you can retrieve a copy of the <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> holding it with the
|
487
|
+
<a class="link" href="json-glib-JSON-Node.html#json-node-get-value" title="json_node_get_value ()"><code class="function">json_node_get_value()</code></a> function, and then use the <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> API to extract
|
483
488
|
the data; if the node contains a complex type you can retrieve the
|
484
489
|
<a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="type">JsonObject</span></a> or the <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> using <a class="link" href="json-glib-JSON-Node.html#json-node-get-object" title="json_node_get_object ()"><code class="function">json_node_get_object()</code></a> or
|
485
490
|
<a class="link" href="json-glib-JSON-Node.html#json-node-get-array" title="json_node_get_array ()"><code class="function">json_node_get_array()</code></a> respectively, and then retrieve the nodes
|
@@ -511,7 +516,7 @@ and <a class="link" href="json-glib-JSON-Node.html#json-node-unref" title="json_
|
|
511
516
|
</p>
|
512
517
|
<div class="refsect3">
|
513
518
|
<a name="JSON-NODE-TYPE.parameters"></a><h4>Parameters</h4>
|
514
|
-
<div class="informaltable"><table width="100%" border="0">
|
519
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
515
520
|
<colgroup>
|
516
521
|
<col width="150px" class="parameters_name">
|
517
522
|
<col class="parameters_description">
|
@@ -530,12 +535,12 @@ and <a class="link" href="json-glib-JSON-Node.html#json-node-unref" title="json_
|
|
530
535
|
<a name="JSON-NODE-HOLDS:CAPS"></a><h3>JSON_NODE_HOLDS()</h3>
|
531
536
|
<pre class="programlisting">#define JSON_NODE_HOLDS(node,t) (json_node_get_node_type ((node)) == (t))
|
532
537
|
</pre>
|
533
|
-
<p>Evaluates to <code class="literal">TRUE</code> if the <em class="parameter"><code>node</code></em>
|
538
|
+
<p>Evaluates to <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the <em class="parameter"><code>node</code></em>
|
534
539
|
holds type <em class="parameter"><code>t</code></em>
|
535
540
|
</p>
|
536
541
|
<div class="refsect3">
|
537
542
|
<a name="JSON-NODE-HOLDS.parameters"></a><h4>Parameters</h4>
|
538
|
-
<div class="informaltable"><table width="100%" border="0">
|
543
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
539
544
|
<colgroup>
|
540
545
|
<col width="150px" class="parameters_name">
|
541
546
|
<col class="parameters_description">
|
@@ -562,11 +567,11 @@ and <a class="link" href="json-glib-JSON-Node.html#json-node-unref" title="json_
|
|
562
567
|
<a name="JSON-NODE-HOLDS-VALUE:CAPS"></a><h3>JSON_NODE_HOLDS_VALUE()</h3>
|
563
568
|
<pre class="programlisting">#define JSON_NODE_HOLDS_VALUE(node) (JSON_NODE_HOLDS ((node), JSON_NODE_VALUE))
|
564
569
|
</pre>
|
565
|
-
<p>Evaluates to <code class="literal">TRUE</code> if <em class="parameter"><code>node</code></em>
|
570
|
+
<p>Evaluates to <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>node</code></em>
|
566
571
|
holds a <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-VALUE:CAPS"><code class="literal">JSON_NODE_VALUE</code></a></p>
|
567
572
|
<div class="refsect3">
|
568
573
|
<a name="JSON-NODE-HOLDS-VALUE.parameters"></a><h4>Parameters</h4>
|
569
|
-
<div class="informaltable"><table width="100%" border="0">
|
574
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
570
575
|
<colgroup>
|
571
576
|
<col width="150px" class="parameters_name">
|
572
577
|
<col class="parameters_description">
|
@@ -586,11 +591,11 @@ and <a class="link" href="json-glib-JSON-Node.html#json-node-unref" title="json_
|
|
586
591
|
<a name="JSON-NODE-HOLDS-OBJECT:CAPS"></a><h3>JSON_NODE_HOLDS_OBJECT()</h3>
|
587
592
|
<pre class="programlisting">#define JSON_NODE_HOLDS_OBJECT(node) (JSON_NODE_HOLDS ((node), JSON_NODE_OBJECT))
|
588
593
|
</pre>
|
589
|
-
<p>Evaluates to <code class="literal">TRUE</code> if <em class="parameter"><code>node</code></em>
|
594
|
+
<p>Evaluates to <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>node</code></em>
|
590
595
|
holds a <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-OBJECT:CAPS"><code class="literal">JSON_NODE_OBJECT</code></a></p>
|
591
596
|
<div class="refsect3">
|
592
597
|
<a name="JSON-NODE-HOLDS-OBJECT.parameters"></a><h4>Parameters</h4>
|
593
|
-
<div class="informaltable"><table width="100%" border="0">
|
598
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
594
599
|
<colgroup>
|
595
600
|
<col width="150px" class="parameters_name">
|
596
601
|
<col class="parameters_description">
|
@@ -610,11 +615,11 @@ and <a class="link" href="json-glib-JSON-Node.html#json-node-unref" title="json_
|
|
610
615
|
<a name="JSON-NODE-HOLDS-ARRAY:CAPS"></a><h3>JSON_NODE_HOLDS_ARRAY()</h3>
|
611
616
|
<pre class="programlisting">#define JSON_NODE_HOLDS_ARRAY(node) (JSON_NODE_HOLDS ((node), JSON_NODE_ARRAY))
|
612
617
|
</pre>
|
613
|
-
<p>Evaluates to <code class="literal">TRUE</code> if <em class="parameter"><code>node</code></em>
|
618
|
+
<p>Evaluates to <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>node</code></em>
|
614
619
|
holds a <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-ARRAY:CAPS"><code class="literal">JSON_NODE_ARRAY</code></a></p>
|
615
620
|
<div class="refsect3">
|
616
621
|
<a name="JSON-NODE-HOLDS-ARRAY.parameters"></a><h4>Parameters</h4>
|
617
|
-
<div class="informaltable"><table width="100%" border="0">
|
622
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
618
623
|
<colgroup>
|
619
624
|
<col width="150px" class="parameters_name">
|
620
625
|
<col class="parameters_description">
|
@@ -634,11 +639,11 @@ and <a class="link" href="json-glib-JSON-Node.html#json-node-unref" title="json_
|
|
634
639
|
<a name="JSON-NODE-HOLDS-NULL:CAPS"></a><h3>JSON_NODE_HOLDS_NULL()</h3>
|
635
640
|
<pre class="programlisting">#define JSON_NODE_HOLDS_NULL(node) (JSON_NODE_HOLDS ((node), JSON_NODE_NULL))
|
636
641
|
</pre>
|
637
|
-
<p>Evaluates to <code class="literal">TRUE</code> if <em class="parameter"><code>node</code></em>
|
642
|
+
<p>Evaluates to <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>node</code></em>
|
638
643
|
holds a <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-NULL:CAPS"><code class="literal">JSON_NODE_NULL</code></a></p>
|
639
644
|
<div class="refsect3">
|
640
645
|
<a name="JSON-NODE-HOLDS-NULL.parameters"></a><h4>Parameters</h4>
|
641
|
-
<div class="informaltable"><table width="100%" border="0">
|
646
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
642
647
|
<colgroup>
|
643
648
|
<col width="150px" class="parameters_name">
|
644
649
|
<col class="parameters_description">
|
@@ -682,7 +687,7 @@ json_node_init (<em class="parameter"><code><a class="link" href="json-glib-JSON
|
|
682
687
|
the given type, and any data contained will be cleared.</p>
|
683
688
|
<div class="refsect3">
|
684
689
|
<a name="json-node-init.parameters"></a><h4>Parameters</h4>
|
685
|
-
<div class="informaltable"><table width="100%" border="0">
|
690
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
686
691
|
<colgroup>
|
687
692
|
<col width="150px" class="parameters_name">
|
688
693
|
<col class="parameters_description">
|
@@ -715,7 +720,7 @@ to</p></td>
|
|
715
720
|
<a name="json-node-init-int"></a><h3>json_node_init_int ()</h3>
|
716
721
|
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
717
722
|
json_node_init_int (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>,
|
718
|
-
<em class="parameter"><code><span class="type">gint64</span> value</code></em>);</pre>
|
723
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a> value</code></em>);</pre>
|
719
724
|
<p>Initializes <em class="parameter"><code>node</code></em>
|
720
725
|
to <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-VALUE:CAPS"><code class="literal">JSON_NODE_VALUE</code></a> and sets <em class="parameter"><code>value</code></em>
|
721
726
|
into it.</p>
|
@@ -723,7 +728,7 @@ json_node_init_int (<em class="parameter"><code><a class="link" href="json-glib-
|
|
723
728
|
the given type, and any data contained will be cleared.</p>
|
724
729
|
<div class="refsect3">
|
725
730
|
<a name="json-node-init-int.parameters"></a><h4>Parameters</h4>
|
726
|
-
<div class="informaltable"><table width="100%" border="0">
|
731
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
727
732
|
<colgroup>
|
728
733
|
<col width="150px" class="parameters_name">
|
729
734
|
<col class="parameters_description">
|
@@ -755,7 +760,7 @@ the given type, and any data contained will be cleared.</p>
|
|
755
760
|
<a name="json-node-init-double"></a><h3>json_node_init_double ()</h3>
|
756
761
|
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
757
762
|
json_node_init_double (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>,
|
758
|
-
<em class="parameter"><code><span class="type">gdouble</span> value</code></em>);</pre>
|
763
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> value</code></em>);</pre>
|
759
764
|
<p>Initializes <em class="parameter"><code>node</code></em>
|
760
765
|
to <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-VALUE:CAPS"><code class="literal">JSON_NODE_VALUE</code></a> and sets <em class="parameter"><code>value</code></em>
|
761
766
|
into it.</p>
|
@@ -763,7 +768,7 @@ json_node_init_double (<em class="parameter"><code><a class="link" href="json-gl
|
|
763
768
|
the given type, and any data contained will be cleared.</p>
|
764
769
|
<div class="refsect3">
|
765
770
|
<a name="json-node-init-double.parameters"></a><h4>Parameters</h4>
|
766
|
-
<div class="informaltable"><table width="100%" border="0">
|
771
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
767
772
|
<colgroup>
|
768
773
|
<col width="150px" class="parameters_name">
|
769
774
|
<col class="parameters_description">
|
@@ -795,7 +800,7 @@ the given type, and any data contained will be cleared.</p>
|
|
795
800
|
<a name="json-node-init-boolean"></a><h3>json_node_init_boolean ()</h3>
|
796
801
|
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
797
802
|
json_node_init_boolean (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>,
|
798
|
-
<em class="parameter"><code><span class="type">gboolean</span> value</code></em>);</pre>
|
803
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> value</code></em>);</pre>
|
799
804
|
<p>Initializes <em class="parameter"><code>node</code></em>
|
800
805
|
to <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-VALUE:CAPS"><code class="literal">JSON_NODE_VALUE</code></a> and sets <em class="parameter"><code>value</code></em>
|
801
806
|
into it.</p>
|
@@ -803,7 +808,7 @@ json_node_init_boolean (<em class="parameter"><code><a class="link" href="json-g
|
|
803
808
|
the given type, and any data contained will be cleared.</p>
|
804
809
|
<div class="refsect3">
|
805
810
|
<a name="json-node-init-boolean.parameters"></a><h4>Parameters</h4>
|
806
|
-
<div class="informaltable"><table width="100%" border="0">
|
811
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
807
812
|
<colgroup>
|
808
813
|
<col width="150px" class="parameters_name">
|
809
814
|
<col class="parameters_description">
|
@@ -843,7 +848,7 @@ json_node_init_string (<em class="parameter"><code><a class="link" href="json-gl
|
|
843
848
|
the given type, and any data contained will be cleared.</p>
|
844
849
|
<div class="refsect3">
|
845
850
|
<a name="json-node-init-string.parameters"></a><h4>Parameters</h4>
|
846
|
-
<div class="informaltable"><table width="100%" border="0">
|
851
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
847
852
|
<colgroup>
|
848
853
|
<col width="150px" class="parameters_name">
|
849
854
|
<col class="parameters_description">
|
@@ -881,7 +886,7 @@ json_node_init_null (<em class="parameter"><code><a class="link" href="json-glib
|
|
881
886
|
the given type, and any data contained will be cleared.</p>
|
882
887
|
<div class="refsect3">
|
883
888
|
<a name="json-node-init-null.parameters"></a><h4>Parameters</h4>
|
884
|
-
<div class="informaltable"><table width="100%" border="0">
|
889
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
885
890
|
<colgroup>
|
886
891
|
<col width="150px" class="parameters_name">
|
887
892
|
<col class="parameters_description">
|
@@ -916,7 +921,7 @@ json_node_init_object (<em class="parameter"><code><a class="link" href="json-gl
|
|
916
921
|
the given type, and any data contained will be cleared.</p>
|
917
922
|
<div class="refsect3">
|
918
923
|
<a name="json-node-init-object.parameters"></a><h4>Parameters</h4>
|
919
|
-
<div class="informaltable"><table width="100%" border="0">
|
924
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
920
925
|
<colgroup>
|
921
926
|
<col width="150px" class="parameters_name">
|
922
927
|
<col class="parameters_description">
|
@@ -931,7 +936,7 @@ the given type, and any data contained will be cleared.</p>
|
|
931
936
|
<tr>
|
932
937
|
<td class="parameter_name"><p>object</p></td>
|
933
938
|
<td class="parameter_description"><p> the <a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="type">JsonObject</span></a> to initialize <em class="parameter"><code>node</code></em>
|
934
|
-
with, or <code class="literal">NULL</code>. </p></td>
|
939
|
+
with, or <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
935
940
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
936
941
|
</tr>
|
937
942
|
</tbody>
|
@@ -959,7 +964,7 @@ json_node_init_array (<em class="parameter"><code><a class="link" href="json-gli
|
|
959
964
|
the given type, and any data contained will be cleared.</p>
|
960
965
|
<div class="refsect3">
|
961
966
|
<a name="json-node-init-array.parameters"></a><h4>Parameters</h4>
|
962
|
-
<div class="informaltable"><table width="100%" border="0">
|
967
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
963
968
|
<colgroup>
|
964
969
|
<col width="150px" class="parameters_name">
|
965
970
|
<col class="parameters_description">
|
@@ -974,7 +979,7 @@ the given type, and any data contained will be cleared.</p>
|
|
974
979
|
<tr>
|
975
980
|
<td class="parameter_name"><p>array</p></td>
|
976
981
|
<td class="parameter_description"><p> the <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> to initialize <em class="parameter"><code>node</code></em>
|
977
|
-
with, or <code class="literal">NULL</code>. </p></td>
|
982
|
+
with, or <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
978
983
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
979
984
|
</tr>
|
980
985
|
</tbody>
|
@@ -1011,7 +1016,7 @@ and it's the equivalent of:</p>
|
|
1011
1016
|
<p><span class="annotation">[<acronym title="This symbol is a constructor, not a static method."><span class="acronym">constructor</span></acronym>]</span></p>
|
1012
1017
|
<div class="refsect3">
|
1013
1018
|
<a name="json-node-new.parameters"></a><h4>Parameters</h4>
|
1014
|
-
<div class="informaltable"><table width="100%" border="0">
|
1019
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1015
1020
|
<colgroup>
|
1016
1021
|
<col width="150px" class="parameters_name">
|
1017
1022
|
<col class="parameters_description">
|
@@ -1044,7 +1049,7 @@ immutable.</p>
|
|
1044
1049
|
there should be no need to copy an immutable node.</p>
|
1045
1050
|
<div class="refsect3">
|
1046
1051
|
<a name="json-node-copy.parameters"></a><h4>Parameters</h4>
|
1047
|
-
<div class="informaltable"><table width="100%" border="0">
|
1052
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1048
1053
|
<colgroup>
|
1049
1054
|
<col width="150px" class="parameters_name">
|
1050
1055
|
<col class="parameters_description">
|
@@ -1072,7 +1077,7 @@ json_node_free (<em class="parameter"><code><a class="link" href="json-glib-JSON
|
|
1072
1077
|
.</p>
|
1073
1078
|
<div class="refsect3">
|
1074
1079
|
<a name="json-node-free.parameters"></a><h4>Parameters</h4>
|
1075
|
-
<div class="informaltable"><table width="100%" border="0">
|
1080
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1076
1081
|
<colgroup>
|
1077
1082
|
<col width="150px" class="parameters_name">
|
1078
1083
|
<col class="parameters_description">
|
@@ -1095,7 +1100,7 @@ json_node_ref (<em class="parameter"><code><a class="link" href="json-glib-JSON-
|
|
1095
1100
|
.</p>
|
1096
1101
|
<div class="refsect3">
|
1097
1102
|
<a name="json-node-ref.parameters"></a><h4>Parameters</h4>
|
1098
|
-
<div class="informaltable"><table width="100%" border="0">
|
1103
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1099
1104
|
<colgroup>
|
1100
1105
|
<col width="150px" class="parameters_name">
|
1101
1106
|
<col class="parameters_description">
|
@@ -1126,7 +1131,7 @@ json_node_unref (<em class="parameter"><code><a class="link" href="json-glib-JSO
|
|
1126
1131
|
freed.</p>
|
1127
1132
|
<div class="refsect3">
|
1128
1133
|
<a name="json-node-unref.parameters"></a><h4>Parameters</h4>
|
1129
|
-
<div class="informaltable"><table width="100%" border="0">
|
1134
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1130
1135
|
<colgroup>
|
1131
1136
|
<col width="150px" class="parameters_name">
|
1132
1137
|
<col class="parameters_description">
|
@@ -1144,14 +1149,14 @@ freed.</p>
|
|
1144
1149
|
<hr>
|
1145
1150
|
<div class="refsect2">
|
1146
1151
|
<a name="json-node-is-immutable"></a><h3>json_node_is_immutable ()</h3>
|
1147
|
-
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
1152
|
+
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
1148
1153
|
json_node_is_immutable (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
|
1149
1154
|
<p>Check whether the given <em class="parameter"><code>node</code></em>
|
1150
1155
|
has been marked as immutable by calling
|
1151
1156
|
<a class="link" href="json-glib-JSON-Node.html#json-node-seal" title="json_node_seal ()"><code class="function">json_node_seal()</code></a> on it.</p>
|
1152
1157
|
<div class="refsect3">
|
1153
1158
|
<a name="json-node-is-immutable.parameters"></a><h4>Parameters</h4>
|
1154
|
-
<div class="informaltable"><table width="100%" border="0">
|
1159
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1155
1160
|
<colgroup>
|
1156
1161
|
<col width="150px" class="parameters_name">
|
1157
1162
|
<col class="parameters_description">
|
@@ -1166,7 +1171,7 @@ json_node_is_immutable (<em class="parameter"><code><a class="link" href="json-g
|
|
1166
1171
|
</div>
|
1167
1172
|
<div class="refsect3">
|
1168
1173
|
<a name="json-node-is-immutable.returns"></a><h4>Returns</h4>
|
1169
|
-
<p> <code class="literal">TRUE</code> if the <em class="parameter"><code>node</code></em>
|
1174
|
+
<p> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the <em class="parameter"><code>node</code></em>
|
1170
1175
|
is immutable</p>
|
1171
1176
|
</div>
|
1172
1177
|
<p class="since">Since: <a class="link" href="ix11.html#api-index-1.2">1.2</a></p>
|
@@ -1185,7 +1190,7 @@ sealed, etc.</p>
|
|
1185
1190
|
is already immutable, this is a no-op.</p>
|
1186
1191
|
<div class="refsect3">
|
1187
1192
|
<a name="json-node-seal.parameters"></a><h4>Parameters</h4>
|
1188
|
-
<div class="informaltable"><table width="100%" border="0">
|
1193
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1189
1194
|
<colgroup>
|
1190
1195
|
<col width="150px" class="parameters_name">
|
1191
1196
|
<col class="parameters_description">
|
@@ -1203,8 +1208,8 @@ sealed, etc.</p>
|
|
1203
1208
|
<hr>
|
1204
1209
|
<div class="refsect2">
|
1205
1210
|
<a name="json-node-hash"></a><h3>json_node_hash ()</h3>
|
1206
|
-
<pre class="programlisting"><span class="returnvalue">guint</span>
|
1207
|
-
json_node_hash (<em class="parameter"><code><span class="type">gconstpointer</span> key</code></em>);</pre>
|
1211
|
+
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
1212
|
+
json_node_hash (<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> key</code></em>);</pre>
|
1208
1213
|
<p>Calculate a hash value for the given <em class="parameter"><code>key</code></em>
|
1209
1214
|
(a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>).</p>
|
1210
1215
|
<p>The hash is calculated over the node and its value, recursively. If the node
|
@@ -1213,7 +1218,7 @@ with the size of the node’s value (for example, with the number of members
|
|
1213
1218
|
in the <a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="type">JsonObject</span></a> if this node contains an object).</p>
|
1214
1219
|
<div class="refsect3">
|
1215
1220
|
<a name="json-node-hash.parameters"></a><h4>Parameters</h4>
|
1216
|
-
<div class="informaltable"><table width="100%" border="0">
|
1221
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1217
1222
|
<colgroup>
|
1218
1223
|
<col width="150px" class="parameters_name">
|
1219
1224
|
<col class="parameters_description">
|
@@ -1236,9 +1241,9 @@ in the <a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class=
|
|
1236
1241
|
<hr>
|
1237
1242
|
<div class="refsect2">
|
1238
1243
|
<a name="json-node-equal"></a><h3>json_node_equal ()</h3>
|
1239
|
-
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
1240
|
-
json_node_equal (<em class="parameter"><code><span class="type">gconstpointer</span> a</code></em>,
|
1241
|
-
<em class="parameter"><code><span class="type">gconstpointer</span> b</code></em>);</pre>
|
1244
|
+
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
1245
|
+
json_node_equal (<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> a</code></em>,
|
1246
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> b</code></em>);</pre>
|
1242
1247
|
<p>Check whether <em class="parameter"><code>a</code></em>
|
1243
1248
|
and <em class="parameter"><code>b</code></em>
|
1244
1249
|
are equal <a href="json-glib-JSON-Node.html#JsonNode-struct"><span class="type">JsonNodes</span></a>, meaning they have the same
|
@@ -1247,7 +1252,7 @@ compared numerically, ignoring type, so a double value 4.0 is equal to the
|
|
1247
1252
|
integer value 4.</p>
|
1248
1253
|
<div class="refsect3">
|
1249
1254
|
<a name="json-node-equal.parameters"></a><h4>Parameters</h4>
|
1250
|
-
<div class="informaltable"><table width="100%" border="0">
|
1255
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1251
1256
|
<colgroup>
|
1252
1257
|
<col width="150px" class="parameters_name">
|
1253
1258
|
<col class="parameters_description">
|
@@ -1269,9 +1274,9 @@ integer value 4.</p>
|
|
1269
1274
|
</div>
|
1270
1275
|
<div class="refsect3">
|
1271
1276
|
<a name="json-node-equal.returns"></a><h4>Returns</h4>
|
1272
|
-
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>a</code></em>
|
1277
|
+
<p> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>a</code></em>
|
1273
1278
|
and <em class="parameter"><code>b</code></em>
|
1274
|
-
are equal; <code class="literal">FALSE</code> otherwise</p>
|
1279
|
+
are equal; <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p>
|
1275
1280
|
</div>
|
1276
1281
|
<p class="since">Since: <a class="link" href="ix11.html#api-index-1.2">1.2</a></p>
|
1277
1282
|
</div>
|
@@ -1287,7 +1292,7 @@ json_node_set_array (<em class="parameter"><code><a class="link" href="json-glib
|
|
1287
1292
|
<p>It is an error to call this on an immutable node.</p>
|
1288
1293
|
<div class="refsect3">
|
1289
1294
|
<a name="json-node-set-array.parameters"></a><h4>Parameters</h4>
|
1290
|
-
<div class="informaltable"><table width="100%" border="0">
|
1295
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1291
1296
|
<colgroup>
|
1292
1297
|
<col width="150px" class="parameters_name">
|
1293
1298
|
<col class="parameters_description">
|
@@ -1320,7 +1325,7 @@ json_node_take_array (<em class="parameter"><code><a class="link" href="json-gli
|
|
1320
1325
|
<p>It is an error to call this on an immutable node.</p>
|
1321
1326
|
<div class="refsect3">
|
1322
1327
|
<a name="json-node-take-array.parameters"></a><h4>Parameters</h4>
|
1323
|
-
<div class="informaltable"><table width="100%" border="0">
|
1328
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1324
1329
|
<colgroup>
|
1325
1330
|
<col width="150px" class="parameters_name">
|
1326
1331
|
<col class="parameters_description">
|
@@ -1346,10 +1351,11 @@ json_node_take_array (<em class="parameter"><code><a class="link" href="json-gli
|
|
1346
1351
|
<a name="json-node-get-array"></a><h3>json_node_get_array ()</h3>
|
1347
1352
|
<pre class="programlisting"><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="returnvalue">JsonArray</span></a> *
|
1348
1353
|
json_node_get_array (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
|
1349
|
-
<p>Retrieves the <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> stored inside a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a
|
1354
|
+
<p>Retrieves the <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> stored inside a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. If the node does not
|
1355
|
+
hold an array value, <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.</p>
|
1350
1356
|
<div class="refsect3">
|
1351
1357
|
<a name="json-node-get-array.parameters"></a><h4>Parameters</h4>
|
1352
|
-
<div class="informaltable"><table width="100%" border="0">
|
1358
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1353
1359
|
<colgroup>
|
1354
1360
|
<col width="150px" class="parameters_name">
|
1355
1361
|
<col class="parameters_description">
|
@@ -1365,7 +1371,7 @@ json_node_get_array (<em class="parameter"><code><a class="link" href="json-glib
|
|
1365
1371
|
<div class="refsect3">
|
1366
1372
|
<a name="json-node-get-array.returns"></a><h4>Returns</h4>
|
1367
1373
|
<p> the <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a>. </p>
|
1368
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
1374
|
+
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
|
1369
1375
|
</div>
|
1370
1376
|
</div>
|
1371
1377
|
<hr>
|
@@ -1374,10 +1380,11 @@ json_node_get_array (<em class="parameter"><code><a class="link" href="json-glib
|
|
1374
1380
|
<pre class="programlisting"><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="returnvalue">JsonArray</span></a> *
|
1375
1381
|
json_node_dup_array (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
|
1376
1382
|
<p>Retrieves the <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> stored inside a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> and returns it
|
1377
|
-
with its reference count increased by one
|
1383
|
+
with its reference count increased by one. If the node does not hold an
|
1384
|
+
array value, <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.</p>
|
1378
1385
|
<div class="refsect3">
|
1379
1386
|
<a name="json-node-dup-array.parameters"></a><h4>Parameters</h4>
|
1380
|
-
<div class="informaltable"><table width="100%" border="0">
|
1387
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1381
1388
|
<colgroup>
|
1382
1389
|
<col width="150px" class="parameters_name">
|
1383
1390
|
<col class="parameters_description">
|
@@ -1394,7 +1401,7 @@ with its reference count increased by one.</p>
|
|
1394
1401
|
<a name="json-node-dup-array.returns"></a><h4>Returns</h4>
|
1395
1402
|
<p> the <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> with its reference
|
1396
1403
|
count increased. </p>
|
1397
|
-
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
1404
|
+
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
|
1398
1405
|
</div>
|
1399
1406
|
</div>
|
1400
1407
|
<hr>
|
@@ -1408,11 +1415,11 @@ json_node_set_object (<em class="parameter"><code><a class="link" href="json-gli
|
|
1408
1415
|
. The reference count of <em class="parameter"><code>object</code></em>
|
1409
1416
|
is increased.</p>
|
1410
1417
|
<p>If <em class="parameter"><code>object</code></em>
|
1411
|
-
is <code class="literal">NULL</code>, the node’s existing object is cleared.</p>
|
1418
|
+
is <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the node’s existing object is cleared.</p>
|
1412
1419
|
<p>It is an error to call this on an immutable node.</p>
|
1413
1420
|
<div class="refsect3">
|
1414
1421
|
<a name="json-node-set-object.parameters"></a><h4>Parameters</h4>
|
1415
|
-
<div class="informaltable"><table width="100%" border="0">
|
1422
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1416
1423
|
<colgroup>
|
1417
1424
|
<col width="150px" class="parameters_name">
|
1418
1425
|
<col class="parameters_description">
|
@@ -1446,7 +1453,7 @@ json_node_take_object (<em class="parameter"><code><a class="link" href="json-gl
|
|
1446
1453
|
<p>It is an error to call this on an immutable node.</p>
|
1447
1454
|
<div class="refsect3">
|
1448
1455
|
<a name="json-node-take-object.parameters"></a><h4>Parameters</h4>
|
1449
|
-
<div class="informaltable"><table width="100%" border="0">
|
1456
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1450
1457
|
<colgroup>
|
1451
1458
|
<col width="150px" class="parameters_name">
|
1452
1459
|
<col class="parameters_description">
|
@@ -1472,10 +1479,11 @@ json_node_take_object (<em class="parameter"><code><a class="link" href="json-gl
|
|
1472
1479
|
<a name="json-node-get-object"></a><h3>json_node_get_object ()</h3>
|
1473
1480
|
<pre class="programlisting"><a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="returnvalue">JsonObject</span></a> *
|
1474
1481
|
json_node_get_object (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
|
1475
|
-
<p>Retrieves the <a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="type">JsonObject</span></a> stored inside a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a
|
1482
|
+
<p>Retrieves the <a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="type">JsonObject</span></a> stored inside a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. If the node does not
|
1483
|
+
hold an object value, <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.</p>
|
1476
1484
|
<div class="refsect3">
|
1477
1485
|
<a name="json-node-get-object.parameters"></a><h4>Parameters</h4>
|
1478
|
-
<div class="informaltable"><table width="100%" border="0">
|
1486
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1479
1487
|
<colgroup>
|
1480
1488
|
<col width="150px" class="parameters_name">
|
1481
1489
|
<col class="parameters_description">
|
@@ -1491,7 +1499,7 @@ json_node_get_object (<em class="parameter"><code><a class="link" href="json-gli
|
|
1491
1499
|
<div class="refsect3">
|
1492
1500
|
<a name="json-node-get-object.returns"></a><h4>Returns</h4>
|
1493
1501
|
<p> the <a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="type">JsonObject</span></a>. </p>
|
1494
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
1502
|
+
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
|
1495
1503
|
</div>
|
1496
1504
|
</div>
|
1497
1505
|
<hr>
|
@@ -1501,10 +1509,11 @@ json_node_get_object (<em class="parameter"><code><a class="link" href="json-gli
|
|
1501
1509
|
json_node_dup_object (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
|
1502
1510
|
<p>Retrieves the <a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="type">JsonObject</span></a> inside <em class="parameter"><code>node</code></em>
|
1503
1511
|
. The reference count of
|
1504
|
-
the returned object is increased
|
1512
|
+
the returned object is increased. If the node does not hold an object value,
|
1513
|
+
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.</p>
|
1505
1514
|
<div class="refsect3">
|
1506
1515
|
<a name="json-node-dup-object.parameters"></a><h4>Parameters</h4>
|
1507
|
-
<div class="informaltable"><table width="100%" border="0">
|
1516
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1508
1517
|
<colgroup>
|
1509
1518
|
<col width="150px" class="parameters_name">
|
1510
1519
|
<col class="parameters_description">
|
@@ -1520,7 +1529,7 @@ the returned object is increased.</p>
|
|
1520
1529
|
<div class="refsect3">
|
1521
1530
|
<a name="json-node-dup-object.returns"></a><h4>Returns</h4>
|
1522
1531
|
<p> the <a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="type">JsonObject</span></a>. </p>
|
1523
|
-
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
1532
|
+
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
|
1524
1533
|
</div>
|
1525
1534
|
</div>
|
1526
1535
|
<hr>
|
@@ -1528,14 +1537,14 @@ the returned object is increased.</p>
|
|
1528
1537
|
<a name="json-node-set-value"></a><h3>json_node_set_value ()</h3>
|
1529
1538
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
1530
1539
|
json_node_set_value (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>,
|
1531
|
-
<em class="parameter"><code>const <span class="type">GValue</span> *value</code></em>);</pre>
|
1540
|
+
<em class="parameter"><code>const <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>);</pre>
|
1532
1541
|
<p>Sets <em class="parameter"><code>value</code></em>
|
1533
1542
|
inside <em class="parameter"><code>node</code></em>
|
1534
|
-
. The passed <span class="type">GValue</span> is copied into the <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>.</p>
|
1543
|
+
. The passed <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> is copied into the <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>.</p>
|
1535
1544
|
<p>It is an error to call this on an immutable node.</p>
|
1536
1545
|
<div class="refsect3">
|
1537
1546
|
<a name="json-node-set-value.parameters"></a><h4>Parameters</h4>
|
1538
|
-
<div class="informaltable"><table width="100%" border="0">
|
1547
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1539
1548
|
<colgroup>
|
1540
1549
|
<col width="150px" class="parameters_name">
|
1541
1550
|
<col class="parameters_description">
|
@@ -1549,7 +1558,7 @@ json_node_set_value (<em class="parameter"><code><a class="link" href="json-glib
|
|
1549
1558
|
</tr>
|
1550
1559
|
<tr>
|
1551
1560
|
<td class="parameter_name"><p>value</p></td>
|
1552
|
-
<td class="parameter_description"><p>the <span class="type">GValue</span> to set</p></td>
|
1561
|
+
<td class="parameter_description"><p>the <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> to set</p></td>
|
1553
1562
|
<td class="parameter_annotations"> </td>
|
1554
1563
|
</tr>
|
1555
1564
|
</tbody>
|
@@ -1561,13 +1570,15 @@ json_node_set_value (<em class="parameter"><code><a class="link" href="json-glib
|
|
1561
1570
|
<a name="json-node-get-value"></a><h3>json_node_get_value ()</h3>
|
1562
1571
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
1563
1572
|
json_node_get_value (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>,
|
1564
|
-
<em class="parameter"><code><span class="type">GValue</span> *value</code></em>);</pre>
|
1573
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>);</pre>
|
1565
1574
|
<p>Retrieves a value from a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> and copies into <em class="parameter"><code>value</code></em>
|
1566
1575
|
. When done
|
1567
|
-
using it, call <code class="function">g_value_unset()</code> on the <span class="type">GValue</span
|
1576
|
+
using it, call <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html#g-value-unset"><code class="function">g_value_unset()</code></a> on the <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a>. If the node does not hold a
|
1577
|
+
scalar value, <em class="parameter"><code>value</code></em>
|
1578
|
+
is not modified.</p>
|
1568
1579
|
<div class="refsect3">
|
1569
1580
|
<a name="json-node-get-value.parameters"></a><h4>Parameters</h4>
|
1570
|
-
<div class="informaltable"><table width="100%" border="0">
|
1581
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1571
1582
|
<colgroup>
|
1572
1583
|
<col width="150px" class="parameters_name">
|
1573
1584
|
<col class="parameters_description">
|
@@ -1593,7 +1604,7 @@ using it, call <code class="function">g_value_unset()</code> on the <span class=
|
|
1593
1604
|
<a name="json-node-set-boolean"></a><h3>json_node_set_boolean ()</h3>
|
1594
1605
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
1595
1606
|
json_node_set_boolean (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>,
|
1596
|
-
<em class="parameter"><code><span class="type">gboolean</span> value</code></em>);</pre>
|
1607
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> value</code></em>);</pre>
|
1597
1608
|
<p>Sets <em class="parameter"><code>value</code></em>
|
1598
1609
|
as the boolean content of the <em class="parameter"><code>node</code></em>
|
1599
1610
|
, replacing any existing
|
@@ -1601,7 +1612,7 @@ content.</p>
|
|
1601
1612
|
<p>It is an error to call this on an immutable node.</p>
|
1602
1613
|
<div class="refsect3">
|
1603
1614
|
<a name="json-node-set-boolean.parameters"></a><h4>Parameters</h4>
|
1604
|
-
<div class="informaltable"><table width="100%" border="0">
|
1615
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1605
1616
|
<colgroup>
|
1606
1617
|
<col width="150px" class="parameters_name">
|
1607
1618
|
<col class="parameters_description">
|
@@ -1625,12 +1636,15 @@ content.</p>
|
|
1625
1636
|
<hr>
|
1626
1637
|
<div class="refsect2">
|
1627
1638
|
<a name="json-node-get-boolean"></a><h3>json_node_get_boolean ()</h3>
|
1628
|
-
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
1639
|
+
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
1629
1640
|
json_node_get_boolean (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
|
1630
|
-
<p>Gets the boolean value stored inside a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a
|
1641
|
+
<p>Gets the boolean value stored inside a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. If the node holds an
|
1642
|
+
integer or double value which is zero, <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned; otherwise <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>
|
1643
|
+
is returned. If the node holds a <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-NULL:CAPS"><code class="literal">JSON_NODE_NULL</code></a> value or a value of another
|
1644
|
+
non-boolean type, <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned.</p>
|
1631
1645
|
<div class="refsect3">
|
1632
1646
|
<a name="json-node-get-boolean.parameters"></a><h4>Parameters</h4>
|
1633
|
-
<div class="informaltable"><table width="100%" border="0">
|
1647
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1634
1648
|
<colgroup>
|
1635
1649
|
<col width="150px" class="parameters_name">
|
1636
1650
|
<col class="parameters_description">
|
@@ -1653,7 +1667,7 @@ json_node_get_boolean (<em class="parameter"><code><a class="link" href="json-gl
|
|
1653
1667
|
<a name="json-node-set-double"></a><h3>json_node_set_double ()</h3>
|
1654
1668
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
1655
1669
|
json_node_set_double (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>,
|
1656
|
-
<em class="parameter"><code><span class="type">gdouble</span> value</code></em>);</pre>
|
1670
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> value</code></em>);</pre>
|
1657
1671
|
<p>Sets <em class="parameter"><code>value</code></em>
|
1658
1672
|
as the double content of the <em class="parameter"><code>node</code></em>
|
1659
1673
|
, replacing any existing
|
@@ -1661,7 +1675,7 @@ content.</p>
|
|
1661
1675
|
<p>It is an error to call this on an immutable node.</p>
|
1662
1676
|
<div class="refsect3">
|
1663
1677
|
<a name="json-node-set-double.parameters"></a><h4>Parameters</h4>
|
1664
|
-
<div class="informaltable"><table width="100%" border="0">
|
1678
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1665
1679
|
<colgroup>
|
1666
1680
|
<col width="150px" class="parameters_name">
|
1667
1681
|
<col class="parameters_description">
|
@@ -1685,12 +1699,16 @@ content.</p>
|
|
1685
1699
|
<hr>
|
1686
1700
|
<div class="refsect2">
|
1687
1701
|
<a name="json-node-get-double"></a><h3>json_node_get_double ()</h3>
|
1688
|
-
<pre class="programlisting"><span class="returnvalue">gdouble</span>
|
1702
|
+
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>
|
1689
1703
|
json_node_get_double (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
|
1690
|
-
<p>Gets the double value stored inside a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a
|
1704
|
+
<p>Gets the double value stored inside a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. If the node holds an integer
|
1705
|
+
value, it is returned as a double. If the node holds a <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> boolean value,
|
1706
|
+
<code class="literal">0.0</code> is returned; otherwise a non-zero double is returned. If the node holds
|
1707
|
+
a <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-NULL:CAPS"><code class="literal">JSON_NODE_NULL</code></a> value or a value of another non-double type, <code class="literal">0.0</code> is
|
1708
|
+
returned.</p>
|
1691
1709
|
<div class="refsect3">
|
1692
1710
|
<a name="json-node-get-double.parameters"></a><h4>Parameters</h4>
|
1693
|
-
<div class="informaltable"><table width="100%" border="0">
|
1711
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1694
1712
|
<colgroup>
|
1695
1713
|
<col width="150px" class="parameters_name">
|
1696
1714
|
<col class="parameters_description">
|
@@ -1713,7 +1731,7 @@ json_node_get_double (<em class="parameter"><code><a class="link" href="json-gli
|
|
1713
1731
|
<a name="json-node-set-int"></a><h3>json_node_set_int ()</h3>
|
1714
1732
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
1715
1733
|
json_node_set_int (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>,
|
1716
|
-
<em class="parameter"><code><span class="type">gint64</span> value</code></em>);</pre>
|
1734
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="type">gint64</span></a> value</code></em>);</pre>
|
1717
1735
|
<p>Sets <em class="parameter"><code>value</code></em>
|
1718
1736
|
as the integer content of the <em class="parameter"><code>node</code></em>
|
1719
1737
|
, replacing any existing
|
@@ -1721,7 +1739,7 @@ content.</p>
|
|
1721
1739
|
<p>It is an error to call this on an immutable node.</p>
|
1722
1740
|
<div class="refsect3">
|
1723
1741
|
<a name="json-node-set-int.parameters"></a><h4>Parameters</h4>
|
1724
|
-
<div class="informaltable"><table width="100%" border="0">
|
1742
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1725
1743
|
<colgroup>
|
1726
1744
|
<col width="150px" class="parameters_name">
|
1727
1745
|
<col class="parameters_description">
|
@@ -1745,12 +1763,16 @@ content.</p>
|
|
1745
1763
|
<hr>
|
1746
1764
|
<div class="refsect2">
|
1747
1765
|
<a name="json-node-get-int"></a><h3>json_node_get_int ()</h3>
|
1748
|
-
<pre class="programlisting"><span class="returnvalue">gint64</span>
|
1766
|
+
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="returnvalue">gint64</span></a>
|
1749
1767
|
json_node_get_int (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
|
1750
|
-
<p>Gets the integer value stored inside a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a
|
1768
|
+
<p>Gets the integer value stored inside a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. If the node holds a double
|
1769
|
+
value, its integer component is returned. If the node holds a <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> boolean
|
1770
|
+
value, <code class="literal">0</code> is returned; otherwise a non-zero integer is returned. If the
|
1771
|
+
node holds a <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-NULL:CAPS"><code class="literal">JSON_NODE_NULL</code></a> value or a value of another non-integer type,
|
1772
|
+
<code class="literal">0</code> is returned.</p>
|
1751
1773
|
<div class="refsect3">
|
1752
1774
|
<a name="json-node-get-int.parameters"></a><h4>Parameters</h4>
|
1753
|
-
<div class="informaltable"><table width="100%" border="0">
|
1775
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1754
1776
|
<colgroup>
|
1755
1777
|
<col width="150px" class="parameters_name">
|
1756
1778
|
<col class="parameters_description">
|
@@ -1773,7 +1795,7 @@ json_node_get_int (<em class="parameter"><code><a class="link" href="json-glib-J
|
|
1773
1795
|
<a name="json-node-set-string"></a><h3>json_node_set_string ()</h3>
|
1774
1796
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
1775
1797
|
json_node_set_string (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>,
|
1776
|
-
<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>);</pre>
|
1798
|
+
<em class="parameter"><code>const <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);</pre>
|
1777
1799
|
<p>Sets <em class="parameter"><code>value</code></em>
|
1778
1800
|
as the string content of the <em class="parameter"><code>node</code></em>
|
1779
1801
|
, replacing any existing
|
@@ -1781,7 +1803,7 @@ content.</p>
|
|
1781
1803
|
<p>It is an error to call this on an immutable node.</p>
|
1782
1804
|
<div class="refsect3">
|
1783
1805
|
<a name="json-node-set-string.parameters"></a><h4>Parameters</h4>
|
1784
|
-
<div class="informaltable"><table width="100%" border="0">
|
1806
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1785
1807
|
<colgroup>
|
1786
1808
|
<col width="150px" class="parameters_name">
|
1787
1809
|
<col class="parameters_description">
|
@@ -1805,12 +1827,13 @@ content.</p>
|
|
1805
1827
|
<hr>
|
1806
1828
|
<div class="refsect2">
|
1807
1829
|
<a name="json-node-get-string"></a><h3>json_node_get_string ()</h3>
|
1808
|
-
<pre class="programlisting">const <span class="returnvalue">gchar</span> *
|
1830
|
+
<pre class="programlisting">const <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
1809
1831
|
json_node_get_string (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
|
1810
|
-
<p>Gets the string value stored inside a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a
|
1832
|
+
<p>Gets the string value stored inside a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. If the node does not hold a
|
1833
|
+
string value, <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.</p>
|
1811
1834
|
<div class="refsect3">
|
1812
1835
|
<a name="json-node-get-string.parameters"></a><h4>Parameters</h4>
|
1813
|
-
<div class="informaltable"><table width="100%" border="0">
|
1836
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1814
1837
|
<colgroup>
|
1815
1838
|
<col width="150px" class="parameters_name">
|
1816
1839
|
<col class="parameters_description">
|
@@ -1825,18 +1848,20 @@ json_node_get_string (<em class="parameter"><code><a class="link" href="json-gli
|
|
1825
1848
|
</div>
|
1826
1849
|
<div class="refsect3">
|
1827
1850
|
<a name="json-node-get-string.returns"></a><h4>Returns</h4>
|
1828
|
-
<p> a string value
|
1851
|
+
<p> a string value. </p>
|
1852
|
+
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
|
1829
1853
|
</div>
|
1830
1854
|
</div>
|
1831
1855
|
<hr>
|
1832
1856
|
<div class="refsect2">
|
1833
1857
|
<a name="json-node-dup-string"></a><h3>json_node_dup_string ()</h3>
|
1834
|
-
<pre class="programlisting"><span class="returnvalue">gchar</span> *
|
1858
|
+
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
1835
1859
|
json_node_dup_string (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
|
1836
|
-
<p>Gets a copy of the string value stored inside a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a
|
1860
|
+
<p>Gets a copy of the string value stored inside a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. If the node does
|
1861
|
+
not hold a string value, <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.</p>
|
1837
1862
|
<div class="refsect3">
|
1838
1863
|
<a name="json-node-dup-string.parameters"></a><h4>Parameters</h4>
|
1839
|
-
<div class="informaltable"><table width="100%" border="0">
|
1864
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1840
1865
|
<colgroup>
|
1841
1866
|
<col width="150px" class="parameters_name">
|
1842
1867
|
<col class="parameters_description">
|
@@ -1851,9 +1876,10 @@ json_node_dup_string (<em class="parameter"><code><a class="link" href="json-gli
|
|
1851
1876
|
</div>
|
1852
1877
|
<div class="refsect3">
|
1853
1878
|
<a name="json-node-dup-string.returns"></a><h4>Returns</h4>
|
1854
|
-
<p> a newly allocated string
|
1855
|
-
of the <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> contents. Use <code class="function">g_free()</code> to free the
|
1856
|
-
|
1879
|
+
<p> a newly allocated string
|
1880
|
+
containing a copy of the <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> contents. Use <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> to free the
|
1881
|
+
allocated resources. </p>
|
1882
|
+
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
|
1857
1883
|
</div>
|
1858
1884
|
</div>
|
1859
1885
|
<hr>
|
@@ -1870,7 +1896,7 @@ json_node_set_parent (<em class="parameter"><code><a class="link" href="json-gli
|
|
1870
1896
|
immutable.</p>
|
1871
1897
|
<div class="refsect3">
|
1872
1898
|
<a name="json-node-set-parent.parameters"></a><h4>Parameters</h4>
|
1873
|
-
<div class="informaltable"><table width="100%" border="0">
|
1899
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1874
1900
|
<colgroup>
|
1875
1901
|
<col width="150px" class="parameters_name">
|
1876
1902
|
<col class="parameters_description">
|
@@ -1902,7 +1928,7 @@ json_node_get_parent (<em class="parameter"><code><a class="link" href="json-gli
|
|
1902
1928
|
.</p>
|
1903
1929
|
<div class="refsect3">
|
1904
1930
|
<a name="json-node-get-parent.parameters"></a><h4>Parameters</h4>
|
1905
|
-
<div class="informaltable"><table width="100%" border="0">
|
1931
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1906
1932
|
<colgroup>
|
1907
1933
|
<col width="150px" class="parameters_name">
|
1908
1934
|
<col class="parameters_description">
|
@@ -1917,22 +1943,21 @@ json_node_get_parent (<em class="parameter"><code><a class="link" href="json-gli
|
|
1917
1943
|
</div>
|
1918
1944
|
<div class="refsect3">
|
1919
1945
|
<a name="json-node-get-parent.returns"></a><h4>Returns</h4>
|
1920
|
-
<p> the parent node, or <code class="literal">NULL</code> if <em class="parameter"><code>node</code></em>
|
1921
|
-
is
|
1922
|
-
the
|
1923
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
1946
|
+
<p> the parent node, or <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>node</code></em>
|
1947
|
+
is the root node. </p>
|
1948
|
+
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
|
1924
1949
|
</div>
|
1925
1950
|
</div>
|
1926
1951
|
<hr>
|
1927
1952
|
<div class="refsect2">
|
1928
1953
|
<a name="json-node-type-name"></a><h3>json_node_type_name ()</h3>
|
1929
|
-
<pre class="programlisting">const <span class="returnvalue">gchar</span> *
|
1954
|
+
<pre class="programlisting">const <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
1930
1955
|
json_node_type_name (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
|
1931
1956
|
<p>Retrieves the user readable name of the data type contained by <em class="parameter"><code>node</code></em>
|
1932
1957
|
.</p>
|
1933
1958
|
<div class="refsect3">
|
1934
1959
|
<a name="json-node-type-name.parameters"></a><h4>Parameters</h4>
|
1935
|
-
<div class="informaltable"><table width="100%" border="0">
|
1960
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1936
1961
|
<colgroup>
|
1937
1962
|
<col width="150px" class="parameters_name">
|
1938
1963
|
<col class="parameters_description">
|
@@ -1954,12 +1979,12 @@ is owned by the node and should never be modified or freed</p>
|
|
1954
1979
|
<hr>
|
1955
1980
|
<div class="refsect2">
|
1956
1981
|
<a name="json-node-get-value-type"></a><h3>json_node_get_value_type ()</h3>
|
1957
|
-
<pre class="programlisting"><span class="returnvalue">GType</span>
|
1982
|
+
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a>
|
1958
1983
|
json_node_get_value_type (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
|
1959
|
-
<p>Returns the <span class="type">GType</span> of the payload of the node.</p>
|
1984
|
+
<p>Returns the <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> of the payload of the node.</p>
|
1960
1985
|
<div class="refsect3">
|
1961
1986
|
<a name="json-node-get-value-type.parameters"></a><h4>Parameters</h4>
|
1962
|
-
<div class="informaltable"><table width="100%" border="0">
|
1987
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1963
1988
|
<colgroup>
|
1964
1989
|
<col width="150px" class="parameters_name">
|
1965
1990
|
<col class="parameters_description">
|
@@ -1974,7 +1999,7 @@ json_node_get_value_type (<em class="parameter"><code><a class="link" href="json
|
|
1974
1999
|
</div>
|
1975
2000
|
<div class="refsect3">
|
1976
2001
|
<a name="json-node-get-value-type.returns"></a><h4>Returns</h4>
|
1977
|
-
<p> a <span class="type">GType</span> for the payload.</p>
|
2002
|
+
<p> a <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> for the payload.</p>
|
1978
2003
|
</div>
|
1979
2004
|
<p class="since">Since: <a class="link" href="ix03.html#api-index-0.4">0.4</a></p>
|
1980
2005
|
</div>
|
@@ -1987,7 +2012,7 @@ json_node_get_node_type (<em class="parameter"><code><a class="link" href="json-
|
|
1987
2012
|
</p>
|
1988
2013
|
<div class="refsect3">
|
1989
2014
|
<a name="json-node-get-node-type.parameters"></a><h4>Parameters</h4>
|
1990
|
-
<div class="informaltable"><table width="100%" border="0">
|
2015
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1991
2016
|
<colgroup>
|
1992
2017
|
<col width="150px" class="parameters_name">
|
1993
2018
|
<col class="parameters_description">
|
@@ -2009,15 +2034,15 @@ json_node_get_node_type (<em class="parameter"><code><a class="link" href="json-
|
|
2009
2034
|
<hr>
|
2010
2035
|
<div class="refsect2">
|
2011
2036
|
<a name="json-node-is-null"></a><h3>json_node_is_null ()</h3>
|
2012
|
-
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
2037
|
+
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
2013
2038
|
json_node_is_null (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
|
2014
2039
|
<p>Checks whether <em class="parameter"><code>node</code></em>
|
2015
2040
|
is a <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-NULL:CAPS"><code class="literal">JSON_NODE_NULL</code></a>.</p>
|
2016
|
-
<p>A <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-NULL:CAPS"><code class="literal">JSON_NODE_NULL</code></a> node is not the same as a <code class="literal">NULL</code> <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>; a
|
2041
|
+
<p>A <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-NULL:CAPS"><code class="literal">JSON_NODE_NULL</code></a> node is not the same as a <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>; a
|
2017
2042
|
<a class="link" href="json-glib-JSON-Node.html#JSON-NODE-NULL:CAPS"><code class="literal">JSON_NODE_NULL</code></a> represents a 'null' value in the JSON tree.</p>
|
2018
2043
|
<div class="refsect3">
|
2019
2044
|
<a name="json-node-is-null.parameters"></a><h4>Parameters</h4>
|
2020
|
-
<div class="informaltable"><table width="100%" border="0">
|
2045
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2021
2046
|
<colgroup>
|
2022
2047
|
<col width="150px" class="parameters_name">
|
2023
2048
|
<col class="parameters_description">
|
@@ -2032,15 +2057,15 @@ json_node_is_null (<em class="parameter"><code><a class="link" href="json-glib-J
|
|
2032
2057
|
</div>
|
2033
2058
|
<div class="refsect3">
|
2034
2059
|
<a name="json-node-is-null.returns"></a><h4>Returns</h4>
|
2035
|
-
<p> <code class="literal">TRUE</code> if the node is null</p>
|
2060
|
+
<p> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the node is null</p>
|
2036
2061
|
</div>
|
2037
2062
|
<p class="since">Since: <a class="link" href="ix05.html#api-index-0.8">0.8</a></p>
|
2038
2063
|
</div>
|
2039
2064
|
<hr>
|
2040
2065
|
<div class="refsect2">
|
2041
2066
|
<a name="json-string-hash"></a><h3>json_string_hash ()</h3>
|
2042
|
-
<pre class="programlisting"><span class="returnvalue">guint</span>
|
2043
|
-
json_string_hash (<em class="parameter"><code><span class="type">gconstpointer</span> key</code></em>);</pre>
|
2067
|
+
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
2068
|
+
json_string_hash (<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> key</code></em>);</pre>
|
2044
2069
|
<p>Calculate a hash value for the given <em class="parameter"><code>key</code></em>
|
2045
2070
|
(a UTF-8 JSON string).</p>
|
2046
2071
|
<p>Note: Member names are compared byte-wise, without applying any Unicode
|
@@ -2048,7 +2073,7 @@ decomposition or normalisation. This is not explicitly mentioned in the JSON
|
|
2048
2073
|
standard (ECMA-404), but is assumed.</p>
|
2049
2074
|
<div class="refsect3">
|
2050
2075
|
<a name="json-string-hash.parameters"></a><h4>Parameters</h4>
|
2051
|
-
<div class="informaltable"><table width="100%" border="0">
|
2076
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2052
2077
|
<colgroup>
|
2053
2078
|
<col width="150px" class="parameters_name">
|
2054
2079
|
<col class="parameters_description">
|
@@ -2071,15 +2096,15 @@ standard (ECMA-404), but is assumed.</p>
|
|
2071
2096
|
<hr>
|
2072
2097
|
<div class="refsect2">
|
2073
2098
|
<a name="json-string-equal"></a><h3>json_string_equal ()</h3>
|
2074
|
-
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
2075
|
-
json_string_equal (<em class="parameter"><code><span class="type">gconstpointer</span> a</code></em>,
|
2076
|
-
<em class="parameter"><code><span class="type">gconstpointer</span> b</code></em>);</pre>
|
2099
|
+
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
2100
|
+
json_string_equal (<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> a</code></em>,
|
2101
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> b</code></em>);</pre>
|
2077
2102
|
<p>Check whether <em class="parameter"><code>a</code></em>
|
2078
2103
|
and <em class="parameter"><code>b</code></em>
|
2079
2104
|
are equal UTF-8 JSON strings.</p>
|
2080
2105
|
<div class="refsect3">
|
2081
2106
|
<a name="json-string-equal.parameters"></a><h4>Parameters</h4>
|
2082
|
-
<div class="informaltable"><table width="100%" border="0">
|
2107
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2083
2108
|
<colgroup>
|
2084
2109
|
<col width="150px" class="parameters_name">
|
2085
2110
|
<col class="parameters_description">
|
@@ -2101,25 +2126,25 @@ json_string_equal (<em class="parameter"><code><span class="type">gconstpointer<
|
|
2101
2126
|
</div>
|
2102
2127
|
<div class="refsect3">
|
2103
2128
|
<a name="json-string-equal.returns"></a><h4>Returns</h4>
|
2104
|
-
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>a</code></em>
|
2129
|
+
<p> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>a</code></em>
|
2105
2130
|
and <em class="parameter"><code>b</code></em>
|
2106
|
-
are equal; <code class="literal">FALSE</code> otherwise</p>
|
2131
|
+
are equal; <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p>
|
2107
2132
|
</div>
|
2108
2133
|
<p class="since">Since: <a class="link" href="ix11.html#api-index-1.2">1.2</a></p>
|
2109
2134
|
</div>
|
2110
2135
|
<hr>
|
2111
2136
|
<div class="refsect2">
|
2112
2137
|
<a name="json-string-compare"></a><h3>json_string_compare ()</h3>
|
2113
|
-
<pre class="programlisting"><span class="returnvalue">gint</span>
|
2114
|
-
json_string_compare (<em class="parameter"><code><span class="type">gconstpointer</span> a</code></em>,
|
2115
|
-
<em class="parameter"><code><span class="type">gconstpointer</span> b</code></em>);</pre>
|
2138
|
+
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
|
2139
|
+
json_string_compare (<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> a</code></em>,
|
2140
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> b</code></em>);</pre>
|
2116
2141
|
<p>Check whether <em class="parameter"><code>a</code></em>
|
2117
2142
|
and <em class="parameter"><code>b</code></em>
|
2118
2143
|
are equal UTF-8 JSON strings and return an ordering
|
2119
2144
|
over them in <code class="function">strcmp()</code> style.</p>
|
2120
2145
|
<div class="refsect3">
|
2121
2146
|
<a name="json-string-compare.parameters"></a><h4>Parameters</h4>
|
2122
|
-
<div class="informaltable"><table width="100%" border="0">
|
2147
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2123
2148
|
<colgroup>
|
2124
2149
|
<col width="150px" class="parameters_name">
|
2125
2150
|
<col class="parameters_description">
|
@@ -2160,7 +2185,7 @@ greater than zero if <em class="parameter"><code>a</code></em>
|
|
2160
2185
|
<p>Indicates the content of a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>.</p>
|
2161
2186
|
<div class="refsect3">
|
2162
2187
|
<a name="JsonNodeType.members"></a><h4>Members</h4>
|
2163
|
-
<div class="informaltable"><table width="100%" border="0">
|
2188
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2164
2189
|
<colgroup>
|
2165
2190
|
<col width="300px" class="enum_members_name">
|
2166
2191
|
<col class="enum_members_description">
|