clutter 3.2.1-x86-mingw32 → 3.2.2-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/Rakefile +1 -1
- data/dependency-check/Rakefile +1 -0
- 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/clutter-1.0/clutter/clutter-enum-types.h +1 -61
- data/vendor/local/include/clutter-1.0/clutter/clutter-marshal.h +212 -182
- data/vendor/local/include/cogl/cogl-path/cogl-path-enum-types.h +1 -3
- data/vendor/local/include/cogl/cogl/cogl-enum-types.h +13 -41
- data/vendor/local/include/json-glib-1.0/json-glib/json-enum-types.h +5 -10
- data/vendor/local/include/json-glib-1.0/json-glib/json-generator.h +4 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-parser.h +2 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-version-macros.h +16 -0
- data/vendor/local/include/json-glib-1.0/json-glib/json-version.h +4 -4
- 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/libclutter-1.0.la +2 -2
- data/vendor/local/lib/libcogl-pango.dll.a +0 -0
- data/vendor/local/lib/libcogl-pango.la +2 -2
- data/vendor/local/lib/libcogl-path.dll.a +0 -0
- data/vendor/local/lib/libcogl-path.la +2 -2
- data/vendor/local/lib/libcogl.dll.a +0 -0
- data/vendor/local/lib/libcogl.la +2 -2
- data/vendor/local/lib/libjson-glib-1.0.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/cally-1.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/clutter-1.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/clutter-cogl-1.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/clutter-gdk-1.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/clutter-win32-1.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/cogl-1.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/cogl-2.0-experimental.pc +1 -1
- data/vendor/local/lib/pkgconfig/cogl-gl-1.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/cogl-pango-1.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/cogl-pango-2.0-experimental.pc +1 -1
- data/vendor/local/lib/pkgconfig/cogl-path-1.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/cogl-path-2.0-experimental.pc +1 -1
- data/vendor/local/lib/pkgconfig/json-glib-1.0.pc +5 -6
- data/vendor/local/libexec/installed-tests/json-glib-1.0/array.exe +0 -0
- data/vendor/local/libexec/installed-tests/json-glib-1.0/boxed.exe +0 -0
- data/vendor/local/libexec/installed-tests/json-glib-1.0/builder.exe +0 -0
- data/vendor/local/libexec/installed-tests/json-glib-1.0/generator.exe +0 -0
- data/vendor/local/libexec/installed-tests/json-glib-1.0/gvariant.exe +0 -0
- data/vendor/local/libexec/installed-tests/json-glib-1.0/invalid.exe +0 -0
- data/vendor/local/libexec/installed-tests/json-glib-1.0/node.exe +0 -0
- data/vendor/local/libexec/installed-tests/json-glib-1.0/object.exe +0 -0
- data/vendor/local/libexec/installed-tests/json-glib-1.0/parser.exe +0 -0
- data/vendor/local/libexec/installed-tests/json-glib-1.0/path.exe +0 -0
- data/vendor/local/libexec/installed-tests/json-glib-1.0/reader.exe +0 -0
- data/vendor/local/libexec/installed-tests/json-glib-1.0/serialize-complex.exe +0 -0
- data/vendor/local/libexec/installed-tests/json-glib-1.0/serialize-full.exe +0 -0
- data/vendor/local/libexec/installed-tests/json-glib-1.0/serialize-simple.exe +0 -0
- data/vendor/local/libexec/installed-tests/json-glib-1.0/stream-load.json +1 -0
- data/vendor/local/share/gir-1.0/Json-1.0.gir +108 -60
- data/vendor/local/share/installed-tests/json-glib-1.0/array.test +3 -0
- data/vendor/local/share/installed-tests/json-glib-1.0/boxed.test +3 -0
- data/vendor/local/share/installed-tests/json-glib-1.0/builder.test +3 -0
- data/vendor/local/share/installed-tests/json-glib-1.0/generator.test +3 -0
- data/vendor/local/share/installed-tests/json-glib-1.0/gvariant.test +3 -0
- data/vendor/local/share/installed-tests/json-glib-1.0/invalid.test +3 -0
- data/vendor/local/share/installed-tests/json-glib-1.0/node.test +3 -0
- data/vendor/local/share/installed-tests/json-glib-1.0/object.test +3 -0
- data/vendor/local/share/installed-tests/json-glib-1.0/parser.test +3 -0
- data/vendor/local/share/installed-tests/json-glib-1.0/path.test +3 -0
- data/vendor/local/share/installed-tests/json-glib-1.0/reader.test +3 -0
- data/vendor/local/share/installed-tests/json-glib-1.0/serialize-complex.test +3 -0
- data/vendor/local/share/installed-tests/json-glib-1.0/serialize-full.test +3 -0
- data/vendor/local/share/installed-tests/json-glib-1.0/serialize-simple.test +3 -0
- 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/ne/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
- metadata +43 -66
- data/vendor/local/lib/libjson-glib-1.0.la +0 -41
- data/vendor/local/share/gtk-doc/html/json-glib/JsonBuilder.html +0 -731
- data/vendor/local/share/gtk-doc/html/json-glib/JsonGenerator.html +0 -657
- data/vendor/local/share/gtk-doc/html/json-glib/JsonParser.html +0 -1191
- data/vendor/local/share/gtk-doc/html/json-glib/JsonPath.html +0 -515
- data/vendor/local/share/gtk-doc/html/json-glib/JsonReader.html +0 -1190
- data/vendor/local/share/gtk-doc/html/json-glib/annotation-glossary.html +0 -80
- data/vendor/local/share/gtk-doc/html/json-glib/ch01.html +0 -40
- data/vendor/local/share/gtk-doc/html/json-glib/ch02.html +0 -40
- data/vendor/local/share/gtk-doc/html/json-glib/ch03.html +0 -37
- data/vendor/local/share/gtk-doc/html/json-glib/ch04.html +0 -32
- data/vendor/local/share/gtk-doc/html/json-glib/ch06.html +0 -43
- data/vendor/local/share/gtk-doc/html/json-glib/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/json-glib/index.html +0 -158
- data/vendor/local/share/gtk-doc/html/json-glib/ix01.html +0 -1074
- data/vendor/local/share/gtk-doc/html/json-glib/ix02.html +0 -48
- data/vendor/local/share/gtk-doc/html/json-glib/ix03.html +0 -55
- data/vendor/local/share/gtk-doc/html/json-glib/ix04.html +0 -48
- data/vendor/local/share/gtk-doc/html/json-glib/ix05.html +0 -180
- data/vendor/local/share/gtk-doc/html/json-glib/ix06.html +0 -115
- data/vendor/local/share/gtk-doc/html/json-glib/ix07.html +0 -155
- data/vendor/local/share/gtk-doc/html/json-glib/ix08.html +0 -139
- data/vendor/local/share/gtk-doc/html/json-glib/ix09.html +0 -66
- data/vendor/local/share/gtk-doc/html/json-glib/ix10.html +0 -38
- data/vendor/local/share/gtk-doc/html/json-glib/ix11.html +0 -155
- data/vendor/local/share/gtk-doc/html/json-glib/json-advanced.html +0 -49
- data/vendor/local/share/gtk-doc/html/json-glib/json-base.html +0 -60
- data/vendor/local/share/gtk-doc/html/json-glib/json-format-tool.html +0 -83
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Boxed-Types-Serialization.html +0 -493
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-GObject-Serialization.html +0 -387
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Array.html +0 -1356
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-GVariant-Integration.html +0 -322
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Node.html +0 -2240
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Object.html +0 -1688
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Serializable-Interface.html +0 -649
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Utility-API.html +0 -158
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Versioning-information.html +0 -217
- data/vendor/local/share/gtk-doc/html/json-glib/json-glib.devhelp2 +0 -343
- data/vendor/local/share/gtk-doc/html/json-glib/json-overview.html +0 -41
- data/vendor/local/share/gtk-doc/html/json-glib/json-streams.html +0 -66
- data/vendor/local/share/gtk-doc/html/json-glib/json-tools.html +0 -44
- data/vendor/local/share/gtk-doc/html/json-glib/json-validate-tool.html +0 -71
- data/vendor/local/share/gtk-doc/html/json-glib/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/json-glib/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/json-glib/license.html +0 -57
- data/vendor/local/share/gtk-doc/html/json-glib/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/json-glib/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/json-glib/style.css +0 -479
- data/vendor/local/share/gtk-doc/html/json-glib/tools.html +0 -37
- data/vendor/local/share/gtk-doc/html/json-glib/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/json-glib/up.png +0 -0
- data/vendor/local/share/man/man1/json-glib-format.1 +0 -60
- data/vendor/local/share/man/man1/json-glib-validate.1 +0 -56
@@ -1,322 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>JSON GVariant Integration: JSON-GLib Reference Manual</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
|
7
|
-
<link rel="home" href="index.html" title="JSON-GLib Reference Manual">
|
8
|
-
<link rel="up" href="json-advanced.html" title="Part IV. JSON-GLib Advanced API">
|
9
|
-
<link rel="prev" href="json-glib-Boxed-Types-Serialization.html" title="Boxed Types Serialization">
|
10
|
-
<link rel="next" href="json-glib-Versioning-information.html" title="Versioning information">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.25 (XML mode)">
|
12
|
-
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
</head>
|
14
|
-
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
|
16
|
-
<td width="100%" align="left" class="shortcuts">
|
17
|
-
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
|
18
|
-
<a href="#json-glib-JSON-GVariant-Integration.description" class="shortcut">Description</a></span>
|
19
|
-
</td>
|
20
|
-
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
21
|
-
<td><a accesskey="u" href="json-advanced.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
22
|
-
<td><a accesskey="p" href="json-glib-Boxed-Types-Serialization.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
23
|
-
<td><a accesskey="n" href="json-glib-Versioning-information.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
24
|
-
</tr></table>
|
25
|
-
<div class="refentry">
|
26
|
-
<a name="json-glib-JSON-GVariant-Integration"></a><div class="titlepage"></div>
|
27
|
-
<div class="refnamediv"><table width="100%"><tr>
|
28
|
-
<td valign="top">
|
29
|
-
<h2><span class="refentrytitle"><a name="json-glib-JSON-GVariant-Integration.top_of_page"></a>JSON GVariant Integration</span></h2>
|
30
|
-
<p>JSON GVariant Integration — Serialize and deserialize GVariant types</p>
|
31
|
-
</td>
|
32
|
-
<td class="gallery_image" valign="top" align="right"></td>
|
33
|
-
</tr></table></div>
|
34
|
-
<div class="refsect1">
|
35
|
-
<a name="json-glib-JSON-GVariant-Integration.functions"></a><h2>Functions</h2>
|
36
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
37
|
-
<colgroup>
|
38
|
-
<col width="150px" class="functions_return">
|
39
|
-
<col class="functions_name">
|
40
|
-
</colgroup>
|
41
|
-
<tbody>
|
42
|
-
<tr>
|
43
|
-
<td class="function_type">
|
44
|
-
<a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
45
|
-
</td>
|
46
|
-
<td class="function_name">
|
47
|
-
<a class="link" href="json-glib-JSON-GVariant-Integration.html#json-gvariant-serialize" title="json_gvariant_serialize ()">json_gvariant_serialize</a> <span class="c_punctuation">()</span>
|
48
|
-
</td>
|
49
|
-
</tr>
|
50
|
-
<tr>
|
51
|
-
<td class="function_type">
|
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
|
-
</td>
|
54
|
-
<td class="function_name">
|
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>
|
56
|
-
</td>
|
57
|
-
</tr>
|
58
|
-
<tr>
|
59
|
-
<td class="function_type">
|
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
|
-
</td>
|
62
|
-
<td class="function_name">
|
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>
|
64
|
-
</td>
|
65
|
-
</tr>
|
66
|
-
<tr>
|
67
|
-
<td class="function_type">
|
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
|
-
</td>
|
70
|
-
<td class="function_name">
|
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>
|
72
|
-
</td>
|
73
|
-
</tr>
|
74
|
-
</tbody>
|
75
|
-
</table></div>
|
76
|
-
</div>
|
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">
|
83
|
-
<a name="json-glib-JSON-GVariant-Integration.description"></a><h2>Description</h2>
|
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
|
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
|
86
|
-
representation.</p>
|
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
|
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
|
89
|
-
string.</p>
|
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
|
92
|
-
methods in order to obtain a correct, type-contrained result.
|
93
|
-
If no signature is provided, conversion can still be done, but the
|
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
|
95
|
-
using the following rules:</p>
|
96
|
-
<div class="refsect3">
|
97
|
-
<a name="id-1.5.5.5.5"></a><h4>Strings</h4>
|
98
|
-
<p>JSON strings map to GVariant <code class="literal">(s)</code>.</p>
|
99
|
-
</div>
|
100
|
-
<div class="refsect3">
|
101
|
-
<a name="id-1.5.5.5.6"></a><h4>Integers</h4>
|
102
|
-
<p>JSON integers map to GVariant int64 <code class="literal">(x)</code>.</p>
|
103
|
-
</div>
|
104
|
-
<div class="refsect3">
|
105
|
-
<a name="id-1.5.5.5.7"></a><h4>Booleans</h4>
|
106
|
-
<p>JSON booleans map to GVariant boolean <code class="literal">(b)</code>.</p>
|
107
|
-
</div>
|
108
|
-
<div class="refsect3">
|
109
|
-
<a name="id-1.5.5.5.8"></a><h4>Numbers</h4>
|
110
|
-
<p>JSON numbers map to GVariant double <code class="literal">(d)</code>.</p>
|
111
|
-
</div>
|
112
|
-
<div class="refsect3">
|
113
|
-
<a name="id-1.5.5.5.9"></a><h4>Arrays</h4>
|
114
|
-
<p>JSON arrays map to GVariant arrays of variants <code class="literal">(av)</code>.</p>
|
115
|
-
</div>
|
116
|
-
<div class="refsect3">
|
117
|
-
<a name="id-1.5.5.5.10"></a><h4>Objects</h4>
|
118
|
-
<p>JSON objects map to GVariant dictionaries of string to variants <code class="literal">(a{sv})</code>.</p>
|
119
|
-
</div>
|
120
|
-
<div class="refsect3">
|
121
|
-
<a name="id-1.5.5.5.11"></a><h4>Null values</h4>
|
122
|
-
<p>JSON null values map to GVariant maybe variants <code class="literal">(mv)</code>.</p>
|
123
|
-
</div>
|
124
|
-
</div>
|
125
|
-
<div class="refsect1">
|
126
|
-
<a name="json-glib-JSON-GVariant-Integration.functions_details"></a><h2>Functions</h2>
|
127
|
-
<div class="refsect2">
|
128
|
-
<a name="json-gvariant-serialize"></a><h3>json_gvariant_serialize ()</h3>
|
129
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
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>
|
131
|
-
<p>Converts <em class="parameter"><code>variant</code></em>
|
132
|
-
to a JSON tree.</p>
|
133
|
-
<div class="refsect3">
|
134
|
-
<a name="json-gvariant-serialize.parameters"></a><h4>Parameters</h4>
|
135
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
136
|
-
<colgroup>
|
137
|
-
<col width="150px" class="parameters_name">
|
138
|
-
<col class="parameters_description">
|
139
|
-
<col width="200px" class="parameters_annotations">
|
140
|
-
</colgroup>
|
141
|
-
<tbody><tr>
|
142
|
-
<td class="parameter_name"><p>variant</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>
|
144
|
-
<td class="parameter_annotations"> </td>
|
145
|
-
</tr></tbody>
|
146
|
-
</table></div>
|
147
|
-
</div>
|
148
|
-
<div class="refsect3">
|
149
|
-
<a name="json-gvariant-serialize.returns"></a><h4>Returns</h4>
|
150
|
-
<p> A <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> representing the root of the
|
151
|
-
JSON data structure obtained from <em class="parameter"><code>variant</code></em>
|
152
|
-
. </p>
|
153
|
-
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
154
|
-
</div>
|
155
|
-
<p class="since">Since: <a class="link" href="ix08.html#api-index-0.14">0.14</a></p>
|
156
|
-
</div>
|
157
|
-
<hr>
|
158
|
-
<div class="refsect2">
|
159
|
-
<a name="json-gvariant-serialize-data"></a><h3>json_gvariant_serialize_data ()</h3>
|
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>
|
163
|
-
<p>Converts <em class="parameter"><code>variant</code></em>
|
164
|
-
to its JSON encoded string representation. This method
|
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
|
166
|
-
JSON tree, and then <a class="link" href="JsonGenerator.html" title="JsonGenerator"><span class="type">JsonGenerator</span></a> to stringify it.</p>
|
167
|
-
<div class="refsect3">
|
168
|
-
<a name="json-gvariant-serialize-data.parameters"></a><h4>Parameters</h4>
|
169
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
170
|
-
<colgroup>
|
171
|
-
<col width="150px" class="parameters_name">
|
172
|
-
<col class="parameters_description">
|
173
|
-
<col width="200px" class="parameters_annotations">
|
174
|
-
</colgroup>
|
175
|
-
<tbody>
|
176
|
-
<tr>
|
177
|
-
<td class="parameter_name"><p>variant</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>
|
179
|
-
<td class="parameter_annotations"> </td>
|
180
|
-
</tr>
|
181
|
-
<tr>
|
182
|
-
<td class="parameter_name"><p>length</p></td>
|
183
|
-
<td class="parameter_description"><p> Return location for the length of the returned
|
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>
|
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>
|
186
|
-
</tr>
|
187
|
-
</tbody>
|
188
|
-
</table></div>
|
189
|
-
</div>
|
190
|
-
<div class="refsect3">
|
191
|
-
<a name="json-gvariant-serialize-data.returns"></a><h4>Returns</h4>
|
192
|
-
<p> The JSON encoded string corresponding to
|
193
|
-
<em class="parameter"><code>variant</code></em>
|
194
|
-
. </p>
|
195
|
-
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
196
|
-
</div>
|
197
|
-
<p class="since">Since: <a class="link" href="ix08.html#api-index-0.14">0.14</a></p>
|
198
|
-
</div>
|
199
|
-
<hr>
|
200
|
-
<div class="refsect2">
|
201
|
-
<a name="json-gvariant-deserialize"></a><h3>json_gvariant_deserialize ()</h3>
|
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> *
|
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>,
|
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>
|
206
|
-
<p>Converts a JSON data structure to a GVariant value using <em class="parameter"><code>signature</code></em>
|
207
|
-
to
|
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>
|
209
|
-
is guaranteed to conform to <em class="parameter"><code>signature</code></em>
|
210
|
-
.</p>
|
211
|
-
<p>If <em class="parameter"><code>signature</code></em>
|
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>.
|
214
|
-
If a <em class="parameter"><code>signature</code></em>
|
215
|
-
is provided but the JSON structure cannot be mapped to it,
|
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>.
|
217
|
-
If <em class="parameter"><code>signature</code></em>
|
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
|
219
|
-
in the JSON nodes.</p>
|
220
|
-
<p>The returned variant has a floating reference that will need to be sunk
|
221
|
-
by the caller code.</p>
|
222
|
-
<div class="refsect3">
|
223
|
-
<a name="json-gvariant-deserialize.parameters"></a><h4>Parameters</h4>
|
224
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
225
|
-
<colgroup>
|
226
|
-
<col width="150px" class="parameters_name">
|
227
|
-
<col class="parameters_description">
|
228
|
-
<col width="200px" class="parameters_annotations">
|
229
|
-
</colgroup>
|
230
|
-
<tbody>
|
231
|
-
<tr>
|
232
|
-
<td class="parameter_name"><p>json_node</p></td>
|
233
|
-
<td class="parameter_description"><p>A <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> to convert</p></td>
|
234
|
-
<td class="parameter_annotations"> </td>
|
235
|
-
</tr>
|
236
|
-
<tr>
|
237
|
-
<td class="parameter_name"><p>signature</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>
|
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>
|
240
|
-
</tr>
|
241
|
-
<tr>
|
242
|
-
<td class="parameter_name"><p>error</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>
|
244
|
-
<td class="parameter_annotations"> </td>
|
245
|
-
</tr>
|
246
|
-
</tbody>
|
247
|
-
</table></div>
|
248
|
-
</div>
|
249
|
-
<div class="refsect3">
|
250
|
-
<a name="json-gvariant-deserialize.returns"></a><h4>Returns</h4>
|
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>
|
252
|
-
compliant with <em class="parameter"><code>signature</code></em>
|
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>
|
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>
|
255
|
-
</div>
|
256
|
-
<p class="since">Since: <a class="link" href="ix08.html#api-index-0.14">0.14</a></p>
|
257
|
-
</div>
|
258
|
-
<hr>
|
259
|
-
<div class="refsect2">
|
260
|
-
<a name="json-gvariant-deserialize-data"></a><h3>json_gvariant_deserialize_data ()</h3>
|
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
|
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.
|
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
|
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>
|
270
|
-
<p>The returned variant has a floating reference that will need to be sunk
|
271
|
-
by the caller code.</p>
|
272
|
-
<div class="refsect3">
|
273
|
-
<a name="json-gvariant-deserialize-data.parameters"></a><h4>Parameters</h4>
|
274
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
275
|
-
<colgroup>
|
276
|
-
<col width="150px" class="parameters_name">
|
277
|
-
<col class="parameters_description">
|
278
|
-
<col width="200px" class="parameters_annotations">
|
279
|
-
</colgroup>
|
280
|
-
<tbody>
|
281
|
-
<tr>
|
282
|
-
<td class="parameter_name"><p>json</p></td>
|
283
|
-
<td class="parameter_description"><p>A JSON data string</p></td>
|
284
|
-
<td class="parameter_annotations"> </td>
|
285
|
-
</tr>
|
286
|
-
<tr>
|
287
|
-
<td class="parameter_name"><p>length</p></td>
|
288
|
-
<td class="parameter_description"><p>The length of <em class="parameter"><code>json</code></em>
|
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>
|
290
|
-
<td class="parameter_annotations"> </td>
|
291
|
-
</tr>
|
292
|
-
<tr>
|
293
|
-
<td class="parameter_name"><p>signature</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>
|
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>
|
296
|
-
</tr>
|
297
|
-
<tr>
|
298
|
-
<td class="parameter_name"><p>error</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>
|
300
|
-
<td class="parameter_annotations"> </td>
|
301
|
-
</tr>
|
302
|
-
</tbody>
|
303
|
-
</table></div>
|
304
|
-
</div>
|
305
|
-
<div class="refsect3">
|
306
|
-
<a name="json-gvariant-deserialize-data.returns"></a><h4>Returns</h4>
|
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
|
308
|
-
with <em class="parameter"><code>signature</code></em>
|
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>
|
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>
|
311
|
-
</div>
|
312
|
-
<p class="since">Since: <a class="link" href="ix08.html#api-index-0.14">0.14</a></p>
|
313
|
-
</div>
|
314
|
-
</div>
|
315
|
-
<div class="refsect1">
|
316
|
-
<a name="json-glib-JSON-GVariant-Integration.other_details"></a><h2>Types and Values</h2>
|
317
|
-
</div>
|
318
|
-
</div>
|
319
|
-
<div class="footer">
|
320
|
-
<hr>Generated by GTK-Doc V1.25</div>
|
321
|
-
</body>
|
322
|
-
</html>
|
@@ -1,2240 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>JSON Node: JSON-GLib Reference Manual</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
|
7
|
-
<link rel="home" href="index.html" title="JSON-GLib Reference Manual">
|
8
|
-
<link rel="up" href="ch01.html" title="Data Types">
|
9
|
-
<link rel="prev" href="ch01.html" title="Data Types">
|
10
|
-
<link rel="next" href="json-glib-JSON-Array.html" title="JSON Array">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.25 (XML mode)">
|
12
|
-
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
</head>
|
14
|
-
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
|
16
|
-
<td width="100%" align="left" class="shortcuts">
|
17
|
-
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
|
18
|
-
<a href="#json-glib-JSON-Node.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
|
19
|
-
<a href="#json-glib-JSON-Node.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
|
20
|
-
</td>
|
21
|
-
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
22
|
-
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
23
|
-
<td><a accesskey="p" href="ch01.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
24
|
-
<td><a accesskey="n" href="json-glib-JSON-Array.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
25
|
-
</tr></table>
|
26
|
-
<div class="refentry">
|
27
|
-
<a name="json-glib-JSON-Node"></a><div class="titlepage"></div>
|
28
|
-
<div class="refnamediv"><table width="100%"><tr>
|
29
|
-
<td valign="top">
|
30
|
-
<h2><span class="refentrytitle"><a name="json-glib-JSON-Node.top_of_page"></a>JSON Node</span></h2>
|
31
|
-
<p>JSON Node — Node in a JSON object model</p>
|
32
|
-
</td>
|
33
|
-
<td class="gallery_image" valign="top" align="right"></td>
|
34
|
-
</tr></table></div>
|
35
|
-
<div class="refsect1">
|
36
|
-
<a name="json-glib-JSON-Node.functions"></a><h2>Functions</h2>
|
37
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
38
|
-
<colgroup>
|
39
|
-
<col width="150px" class="functions_return">
|
40
|
-
<col class="functions_name">
|
41
|
-
</colgroup>
|
42
|
-
<tbody>
|
43
|
-
<tr>
|
44
|
-
<td class="define_keyword">#define</td>
|
45
|
-
<td class="function_name">
|
46
|
-
<a class="link" href="json-glib-JSON-Node.html#JSON-NODE-TYPE:CAPS" title="JSON_NODE_TYPE()">JSON_NODE_TYPE</a><span class="c_punctuation">()</span>
|
47
|
-
</td>
|
48
|
-
</tr>
|
49
|
-
<tr>
|
50
|
-
<td class="define_keyword">#define</td>
|
51
|
-
<td class="function_name">
|
52
|
-
<a class="link" href="json-glib-JSON-Node.html#JSON-NODE-HOLDS:CAPS" title="JSON_NODE_HOLDS()">JSON_NODE_HOLDS</a><span class="c_punctuation">()</span>
|
53
|
-
</td>
|
54
|
-
</tr>
|
55
|
-
<tr>
|
56
|
-
<td class="define_keyword">#define</td>
|
57
|
-
<td class="function_name">
|
58
|
-
<a class="link" href="json-glib-JSON-Node.html#JSON-NODE-HOLDS-VALUE:CAPS" title="JSON_NODE_HOLDS_VALUE()">JSON_NODE_HOLDS_VALUE</a><span class="c_punctuation">()</span>
|
59
|
-
</td>
|
60
|
-
</tr>
|
61
|
-
<tr>
|
62
|
-
<td class="define_keyword">#define</td>
|
63
|
-
<td class="function_name">
|
64
|
-
<a class="link" href="json-glib-JSON-Node.html#JSON-NODE-HOLDS-OBJECT:CAPS" title="JSON_NODE_HOLDS_OBJECT()">JSON_NODE_HOLDS_OBJECT</a><span class="c_punctuation">()</span>
|
65
|
-
</td>
|
66
|
-
</tr>
|
67
|
-
<tr>
|
68
|
-
<td class="define_keyword">#define</td>
|
69
|
-
<td class="function_name">
|
70
|
-
<a class="link" href="json-glib-JSON-Node.html#JSON-NODE-HOLDS-ARRAY:CAPS" title="JSON_NODE_HOLDS_ARRAY()">JSON_NODE_HOLDS_ARRAY</a><span class="c_punctuation">()</span>
|
71
|
-
</td>
|
72
|
-
</tr>
|
73
|
-
<tr>
|
74
|
-
<td class="define_keyword">#define</td>
|
75
|
-
<td class="function_name">
|
76
|
-
<a class="link" href="json-glib-JSON-Node.html#JSON-NODE-HOLDS-NULL:CAPS" title="JSON_NODE_HOLDS_NULL()">JSON_NODE_HOLDS_NULL</a><span class="c_punctuation">()</span>
|
77
|
-
</td>
|
78
|
-
</tr>
|
79
|
-
<tr>
|
80
|
-
<td class="function_type">
|
81
|
-
<a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
82
|
-
</td>
|
83
|
-
<td class="function_name">
|
84
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-alloc" title="json_node_alloc ()">json_node_alloc</a> <span class="c_punctuation">()</span>
|
85
|
-
</td>
|
86
|
-
</tr>
|
87
|
-
<tr>
|
88
|
-
<td class="function_type">
|
89
|
-
<a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
90
|
-
</td>
|
91
|
-
<td class="function_name">
|
92
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-init" title="json_node_init ()">json_node_init</a> <span class="c_punctuation">()</span>
|
93
|
-
</td>
|
94
|
-
</tr>
|
95
|
-
<tr>
|
96
|
-
<td class="function_type">
|
97
|
-
<a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
98
|
-
</td>
|
99
|
-
<td class="function_name">
|
100
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-init-int" title="json_node_init_int ()">json_node_init_int</a> <span class="c_punctuation">()</span>
|
101
|
-
</td>
|
102
|
-
</tr>
|
103
|
-
<tr>
|
104
|
-
<td class="function_type">
|
105
|
-
<a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
106
|
-
</td>
|
107
|
-
<td class="function_name">
|
108
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-init-double" title="json_node_init_double ()">json_node_init_double</a> <span class="c_punctuation">()</span>
|
109
|
-
</td>
|
110
|
-
</tr>
|
111
|
-
<tr>
|
112
|
-
<td class="function_type">
|
113
|
-
<a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
114
|
-
</td>
|
115
|
-
<td class="function_name">
|
116
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-init-boolean" title="json_node_init_boolean ()">json_node_init_boolean</a> <span class="c_punctuation">()</span>
|
117
|
-
</td>
|
118
|
-
</tr>
|
119
|
-
<tr>
|
120
|
-
<td class="function_type">
|
121
|
-
<a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
122
|
-
</td>
|
123
|
-
<td class="function_name">
|
124
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-init-string" title="json_node_init_string ()">json_node_init_string</a> <span class="c_punctuation">()</span>
|
125
|
-
</td>
|
126
|
-
</tr>
|
127
|
-
<tr>
|
128
|
-
<td class="function_type">
|
129
|
-
<a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
130
|
-
</td>
|
131
|
-
<td class="function_name">
|
132
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-init-null" title="json_node_init_null ()">json_node_init_null</a> <span class="c_punctuation">()</span>
|
133
|
-
</td>
|
134
|
-
</tr>
|
135
|
-
<tr>
|
136
|
-
<td class="function_type">
|
137
|
-
<a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
138
|
-
</td>
|
139
|
-
<td class="function_name">
|
140
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-init-object" title="json_node_init_object ()">json_node_init_object</a> <span class="c_punctuation">()</span>
|
141
|
-
</td>
|
142
|
-
</tr>
|
143
|
-
<tr>
|
144
|
-
<td class="function_type">
|
145
|
-
<a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
146
|
-
</td>
|
147
|
-
<td class="function_name">
|
148
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-init-array" title="json_node_init_array ()">json_node_init_array</a> <span class="c_punctuation">()</span>
|
149
|
-
</td>
|
150
|
-
</tr>
|
151
|
-
<tr>
|
152
|
-
<td class="function_type">
|
153
|
-
<a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
154
|
-
</td>
|
155
|
-
<td class="function_name">
|
156
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-new" title="json_node_new ()">json_node_new</a> <span class="c_punctuation">()</span>
|
157
|
-
</td>
|
158
|
-
</tr>
|
159
|
-
<tr>
|
160
|
-
<td class="function_type">
|
161
|
-
<a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
162
|
-
</td>
|
163
|
-
<td class="function_name">
|
164
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-copy" title="json_node_copy ()">json_node_copy</a> <span class="c_punctuation">()</span>
|
165
|
-
</td>
|
166
|
-
</tr>
|
167
|
-
<tr>
|
168
|
-
<td class="function_type">
|
169
|
-
<span class="returnvalue">void</span>
|
170
|
-
</td>
|
171
|
-
<td class="function_name">
|
172
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-free" title="json_node_free ()">json_node_free</a> <span class="c_punctuation">()</span>
|
173
|
-
</td>
|
174
|
-
</tr>
|
175
|
-
<tr>
|
176
|
-
<td class="function_type">
|
177
|
-
<a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
178
|
-
</td>
|
179
|
-
<td class="function_name">
|
180
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-ref" title="json_node_ref ()">json_node_ref</a> <span class="c_punctuation">()</span>
|
181
|
-
</td>
|
182
|
-
</tr>
|
183
|
-
<tr>
|
184
|
-
<td class="function_type">
|
185
|
-
<span class="returnvalue">void</span>
|
186
|
-
</td>
|
187
|
-
<td class="function_name">
|
188
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-unref" title="json_node_unref ()">json_node_unref</a> <span class="c_punctuation">()</span>
|
189
|
-
</td>
|
190
|
-
</tr>
|
191
|
-
<tr>
|
192
|
-
<td class="function_type">
|
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
|
-
</td>
|
195
|
-
<td class="function_name">
|
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>
|
197
|
-
</td>
|
198
|
-
</tr>
|
199
|
-
<tr>
|
200
|
-
<td class="function_type">
|
201
|
-
<span class="returnvalue">void</span>
|
202
|
-
</td>
|
203
|
-
<td class="function_name">
|
204
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-seal" title="json_node_seal ()">json_node_seal</a> <span class="c_punctuation">()</span>
|
205
|
-
</td>
|
206
|
-
</tr>
|
207
|
-
<tr>
|
208
|
-
<td class="function_type">
|
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
|
-
</td>
|
211
|
-
<td class="function_name">
|
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>
|
213
|
-
</td>
|
214
|
-
</tr>
|
215
|
-
<tr>
|
216
|
-
<td class="function_type">
|
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
|
-
</td>
|
219
|
-
<td class="function_name">
|
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>
|
221
|
-
</td>
|
222
|
-
</tr>
|
223
|
-
<tr>
|
224
|
-
<td class="function_type">
|
225
|
-
<span class="returnvalue">void</span>
|
226
|
-
</td>
|
227
|
-
<td class="function_name">
|
228
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-set-array" title="json_node_set_array ()">json_node_set_array</a> <span class="c_punctuation">()</span>
|
229
|
-
</td>
|
230
|
-
</tr>
|
231
|
-
<tr>
|
232
|
-
<td class="function_type">
|
233
|
-
<span class="returnvalue">void</span>
|
234
|
-
</td>
|
235
|
-
<td class="function_name">
|
236
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-take-array" title="json_node_take_array ()">json_node_take_array</a> <span class="c_punctuation">()</span>
|
237
|
-
</td>
|
238
|
-
</tr>
|
239
|
-
<tr>
|
240
|
-
<td class="function_type">
|
241
|
-
<a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="returnvalue">JsonArray</span></a> *
|
242
|
-
</td>
|
243
|
-
<td class="function_name">
|
244
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-get-array" title="json_node_get_array ()">json_node_get_array</a> <span class="c_punctuation">()</span>
|
245
|
-
</td>
|
246
|
-
</tr>
|
247
|
-
<tr>
|
248
|
-
<td class="function_type">
|
249
|
-
<a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="returnvalue">JsonArray</span></a> *
|
250
|
-
</td>
|
251
|
-
<td class="function_name">
|
252
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-dup-array" title="json_node_dup_array ()">json_node_dup_array</a> <span class="c_punctuation">()</span>
|
253
|
-
</td>
|
254
|
-
</tr>
|
255
|
-
<tr>
|
256
|
-
<td class="function_type">
|
257
|
-
<span class="returnvalue">void</span>
|
258
|
-
</td>
|
259
|
-
<td class="function_name">
|
260
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-set-object" title="json_node_set_object ()">json_node_set_object</a> <span class="c_punctuation">()</span>
|
261
|
-
</td>
|
262
|
-
</tr>
|
263
|
-
<tr>
|
264
|
-
<td class="function_type">
|
265
|
-
<span class="returnvalue">void</span>
|
266
|
-
</td>
|
267
|
-
<td class="function_name">
|
268
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-take-object" title="json_node_take_object ()">json_node_take_object</a> <span class="c_punctuation">()</span>
|
269
|
-
</td>
|
270
|
-
</tr>
|
271
|
-
<tr>
|
272
|
-
<td class="function_type">
|
273
|
-
<a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="returnvalue">JsonObject</span></a> *
|
274
|
-
</td>
|
275
|
-
<td class="function_name">
|
276
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-get-object" title="json_node_get_object ()">json_node_get_object</a> <span class="c_punctuation">()</span>
|
277
|
-
</td>
|
278
|
-
</tr>
|
279
|
-
<tr>
|
280
|
-
<td class="function_type">
|
281
|
-
<a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="returnvalue">JsonObject</span></a> *
|
282
|
-
</td>
|
283
|
-
<td class="function_name">
|
284
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-dup-object" title="json_node_dup_object ()">json_node_dup_object</a> <span class="c_punctuation">()</span>
|
285
|
-
</td>
|
286
|
-
</tr>
|
287
|
-
<tr>
|
288
|
-
<td class="function_type">
|
289
|
-
<span class="returnvalue">void</span>
|
290
|
-
</td>
|
291
|
-
<td class="function_name">
|
292
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-set-value" title="json_node_set_value ()">json_node_set_value</a> <span class="c_punctuation">()</span>
|
293
|
-
</td>
|
294
|
-
</tr>
|
295
|
-
<tr>
|
296
|
-
<td class="function_type">
|
297
|
-
<span class="returnvalue">void</span>
|
298
|
-
</td>
|
299
|
-
<td class="function_name">
|
300
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-get-value" title="json_node_get_value ()">json_node_get_value</a> <span class="c_punctuation">()</span>
|
301
|
-
</td>
|
302
|
-
</tr>
|
303
|
-
<tr>
|
304
|
-
<td class="function_type">
|
305
|
-
<span class="returnvalue">void</span>
|
306
|
-
</td>
|
307
|
-
<td class="function_name">
|
308
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-set-boolean" title="json_node_set_boolean ()">json_node_set_boolean</a> <span class="c_punctuation">()</span>
|
309
|
-
</td>
|
310
|
-
</tr>
|
311
|
-
<tr>
|
312
|
-
<td class="function_type">
|
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
|
-
</td>
|
315
|
-
<td class="function_name">
|
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>
|
317
|
-
</td>
|
318
|
-
</tr>
|
319
|
-
<tr>
|
320
|
-
<td class="function_type">
|
321
|
-
<span class="returnvalue">void</span>
|
322
|
-
</td>
|
323
|
-
<td class="function_name">
|
324
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-set-double" title="json_node_set_double ()">json_node_set_double</a> <span class="c_punctuation">()</span>
|
325
|
-
</td>
|
326
|
-
</tr>
|
327
|
-
<tr>
|
328
|
-
<td class="function_type">
|
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
|
-
</td>
|
331
|
-
<td class="function_name">
|
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>
|
333
|
-
</td>
|
334
|
-
</tr>
|
335
|
-
<tr>
|
336
|
-
<td class="function_type">
|
337
|
-
<span class="returnvalue">void</span>
|
338
|
-
</td>
|
339
|
-
<td class="function_name">
|
340
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-set-int" title="json_node_set_int ()">json_node_set_int</a> <span class="c_punctuation">()</span>
|
341
|
-
</td>
|
342
|
-
</tr>
|
343
|
-
<tr>
|
344
|
-
<td class="function_type">
|
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
|
-
</td>
|
347
|
-
<td class="function_name">
|
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>
|
349
|
-
</td>
|
350
|
-
</tr>
|
351
|
-
<tr>
|
352
|
-
<td class="function_type">
|
353
|
-
<span class="returnvalue">void</span>
|
354
|
-
</td>
|
355
|
-
<td class="function_name">
|
356
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-set-string" title="json_node_set_string ()">json_node_set_string</a> <span class="c_punctuation">()</span>
|
357
|
-
</td>
|
358
|
-
</tr>
|
359
|
-
<tr>
|
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
|
-
</td>
|
362
|
-
<td class="function_name">
|
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>
|
364
|
-
</td>
|
365
|
-
</tr>
|
366
|
-
<tr>
|
367
|
-
<td class="function_type">
|
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
|
-
</td>
|
370
|
-
<td class="function_name">
|
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>
|
372
|
-
</td>
|
373
|
-
</tr>
|
374
|
-
<tr>
|
375
|
-
<td class="function_type">
|
376
|
-
<span class="returnvalue">void</span>
|
377
|
-
</td>
|
378
|
-
<td class="function_name">
|
379
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-set-parent" title="json_node_set_parent ()">json_node_set_parent</a> <span class="c_punctuation">()</span>
|
380
|
-
</td>
|
381
|
-
</tr>
|
382
|
-
<tr>
|
383
|
-
<td class="function_type">
|
384
|
-
<a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
385
|
-
</td>
|
386
|
-
<td class="function_name">
|
387
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-get-parent" title="json_node_get_parent ()">json_node_get_parent</a> <span class="c_punctuation">()</span>
|
388
|
-
</td>
|
389
|
-
</tr>
|
390
|
-
<tr>
|
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
|
-
</td>
|
393
|
-
<td class="function_name">
|
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>
|
395
|
-
</td>
|
396
|
-
</tr>
|
397
|
-
<tr>
|
398
|
-
<td class="function_type">
|
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
|
-
</td>
|
401
|
-
<td class="function_name">
|
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>
|
403
|
-
</td>
|
404
|
-
</tr>
|
405
|
-
<tr>
|
406
|
-
<td class="function_type">
|
407
|
-
<a class="link" href="json-glib-JSON-Node.html#JsonNodeType" title="enum JsonNodeType"><span class="returnvalue">JsonNodeType</span></a>
|
408
|
-
</td>
|
409
|
-
<td class="function_name">
|
410
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-get-node-type" title="json_node_get_node_type ()">json_node_get_node_type</a> <span class="c_punctuation">()</span>
|
411
|
-
</td>
|
412
|
-
</tr>
|
413
|
-
<tr>
|
414
|
-
<td class="function_type">
|
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
|
-
</td>
|
417
|
-
<td class="function_name">
|
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>
|
419
|
-
</td>
|
420
|
-
</tr>
|
421
|
-
<tr>
|
422
|
-
<td class="function_type">
|
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
|
-
</td>
|
425
|
-
<td class="function_name">
|
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>
|
427
|
-
</td>
|
428
|
-
</tr>
|
429
|
-
<tr>
|
430
|
-
<td class="function_type">
|
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
|
-
</td>
|
433
|
-
<td class="function_name">
|
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>
|
435
|
-
</td>
|
436
|
-
</tr>
|
437
|
-
<tr>
|
438
|
-
<td class="function_type">
|
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
|
-
</td>
|
441
|
-
<td class="function_name">
|
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>
|
443
|
-
</td>
|
444
|
-
</tr>
|
445
|
-
</tbody>
|
446
|
-
</table></div>
|
447
|
-
</div>
|
448
|
-
<a name="JsonNode"></a><div class="refsect1">
|
449
|
-
<a name="json-glib-JSON-Node.other"></a><h2>Types and Values</h2>
|
450
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
451
|
-
<colgroup>
|
452
|
-
<col width="150px" class="name">
|
453
|
-
<col class="description">
|
454
|
-
</colgroup>
|
455
|
-
<tbody>
|
456
|
-
<tr>
|
457
|
-
<td class="datatype_keyword">enum</td>
|
458
|
-
<td class="function_name"><a class="link" href="json-glib-JSON-Node.html#JsonNodeType" title="enum JsonNodeType">JsonNodeType</a></td>
|
459
|
-
</tr>
|
460
|
-
<tr>
|
461
|
-
<td class="datatype_keyword"> </td>
|
462
|
-
<td class="function_name"><a class="link" href="json-glib-JSON-Node.html#JsonNode-struct" title="JsonNode">JsonNode</a></td>
|
463
|
-
</tr>
|
464
|
-
</tbody>
|
465
|
-
</table></div>
|
466
|
-
</div>
|
467
|
-
<div class="refsect1">
|
468
|
-
<a name="json-glib-JSON-Node.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
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
|
-
<span class="lineart">╰──</span> JsonNode
|
471
|
-
</pre>
|
472
|
-
</div>
|
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">
|
479
|
-
<a name="json-glib-JSON-Node.description"></a><h2>Description</h2>
|
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.
|
481
|
-
It can contain fundamental types (integers, booleans, floating point
|
482
|
-
numbers, strings) and complex types (arrays and objects).</p>
|
483
|
-
<p>When parsing a JSON data stream you extract the root node and walk
|
484
|
-
the node tree by retrieving the type of data contained inside the
|
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
|
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
|
488
|
-
the data; if the node contains a complex type you can retrieve the
|
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
|
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
|
491
|
-
they contain.</p>
|
492
|
-
<p>A <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> may be marked as immutable using <a class="link" href="json-glib-JSON-Node.html#json-node-seal" title="json_node_seal ()"><code class="function">json_node_seal()</code></a>. This marks the
|
493
|
-
node and all its descendents as read-only, and means that subsequent calls to
|
494
|
-
setter functions (such as <a class="link" href="json-glib-JSON-Node.html#json-node-set-array" title="json_node_set_array ()"><code class="function">json_node_set_array()</code></a>) on them will abort as a
|
495
|
-
programmer error. By marking a node tree as immutable, it may be referenced
|
496
|
-
in multiple places and its hash value cached for fast lookups, without the
|
497
|
-
possibility of a value deep within the tree changing and affecting hash
|
498
|
-
values. Immutable <a href="json-glib-JSON-Node.html#JsonNode-struct"><span class="type">JsonNodes</span></a> may be passed to functions which retain a
|
499
|
-
reference to them without needing to take a copy.</p>
|
500
|
-
<p><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> supports two types of memory management: alloc/free semantics, and
|
501
|
-
ref/unref semantics. The two may be mixed to a limited extent: nodes may be
|
502
|
-
allocated (which gives them a reference count of 1), referenced zero or more
|
503
|
-
times, unreferenced exactly that number of times (using <a class="link" href="json-glib-JSON-Node.html#json-node-unref" title="json_node_unref ()"><code class="function">json_node_unref()</code></a>),
|
504
|
-
then either unreferenced exactly once more or freed (using <a class="link" href="json-glib-JSON-Node.html#json-node-free" title="json_node_free ()"><code class="function">json_node_free()</code></a>)
|
505
|
-
to destroy them. <a class="link" href="json-glib-JSON-Node.html#json-node-free" title="json_node_free ()"><code class="function">json_node_free()</code></a> must not be used when a node might have a
|
506
|
-
reference count not equal to 1. To this end, json-glib uses <a class="link" href="json-glib-JSON-Node.html#json-node-copy" title="json_node_copy ()"><code class="function">json_node_copy()</code></a>
|
507
|
-
and <a class="link" href="json-glib-JSON-Node.html#json-node-unref" title="json_node_unref ()"><code class="function">json_node_unref()</code></a> internally.</p>
|
508
|
-
</div>
|
509
|
-
<div class="refsect1">
|
510
|
-
<a name="json-glib-JSON-Node.functions_details"></a><h2>Functions</h2>
|
511
|
-
<div class="refsect2">
|
512
|
-
<a name="JSON-NODE-TYPE:CAPS"></a><h3>JSON_NODE_TYPE()</h3>
|
513
|
-
<pre class="programlisting">#define JSON_NODE_TYPE(node) (json_node_get_node_type ((node)))
|
514
|
-
</pre>
|
515
|
-
<p>Evaluates to the <a class="link" href="json-glib-JSON-Node.html#JsonNodeType" title="enum JsonNodeType"><span class="type">JsonNodeType</span></a> contained by <em class="parameter"><code>node</code></em>
|
516
|
-
</p>
|
517
|
-
<div class="refsect3">
|
518
|
-
<a name="JSON-NODE-TYPE.parameters"></a><h4>Parameters</h4>
|
519
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
520
|
-
<colgroup>
|
521
|
-
<col width="150px" class="parameters_name">
|
522
|
-
<col class="parameters_description">
|
523
|
-
<col width="200px" class="parameters_annotations">
|
524
|
-
</colgroup>
|
525
|
-
<tbody><tr>
|
526
|
-
<td class="parameter_name"><p>node</p></td>
|
527
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
528
|
-
<td class="parameter_annotations"> </td>
|
529
|
-
</tr></tbody>
|
530
|
-
</table></div>
|
531
|
-
</div>
|
532
|
-
</div>
|
533
|
-
<hr>
|
534
|
-
<div class="refsect2">
|
535
|
-
<a name="JSON-NODE-HOLDS:CAPS"></a><h3>JSON_NODE_HOLDS()</h3>
|
536
|
-
<pre class="programlisting">#define JSON_NODE_HOLDS(node,t) (json_node_get_node_type ((node)) == (t))
|
537
|
-
</pre>
|
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>
|
539
|
-
holds type <em class="parameter"><code>t</code></em>
|
540
|
-
</p>
|
541
|
-
<div class="refsect3">
|
542
|
-
<a name="JSON-NODE-HOLDS.parameters"></a><h4>Parameters</h4>
|
543
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
544
|
-
<colgroup>
|
545
|
-
<col width="150px" class="parameters_name">
|
546
|
-
<col class="parameters_description">
|
547
|
-
<col width="200px" class="parameters_annotations">
|
548
|
-
</colgroup>
|
549
|
-
<tbody>
|
550
|
-
<tr>
|
551
|
-
<td class="parameter_name"><p>node</p></td>
|
552
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
553
|
-
<td class="parameter_annotations"> </td>
|
554
|
-
</tr>
|
555
|
-
<tr>
|
556
|
-
<td class="parameter_name"><p>t</p></td>
|
557
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNodeType" title="enum JsonNodeType"><span class="type">JsonNodeType</span></a></p></td>
|
558
|
-
<td class="parameter_annotations"> </td>
|
559
|
-
</tr>
|
560
|
-
</tbody>
|
561
|
-
</table></div>
|
562
|
-
</div>
|
563
|
-
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.10">0.10</a></p>
|
564
|
-
</div>
|
565
|
-
<hr>
|
566
|
-
<div class="refsect2">
|
567
|
-
<a name="JSON-NODE-HOLDS-VALUE:CAPS"></a><h3>JSON_NODE_HOLDS_VALUE()</h3>
|
568
|
-
<pre class="programlisting">#define JSON_NODE_HOLDS_VALUE(node) (JSON_NODE_HOLDS ((node), JSON_NODE_VALUE))
|
569
|
-
</pre>
|
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>
|
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>
|
572
|
-
<div class="refsect3">
|
573
|
-
<a name="JSON-NODE-HOLDS-VALUE.parameters"></a><h4>Parameters</h4>
|
574
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
575
|
-
<colgroup>
|
576
|
-
<col width="150px" class="parameters_name">
|
577
|
-
<col class="parameters_description">
|
578
|
-
<col width="200px" class="parameters_annotations">
|
579
|
-
</colgroup>
|
580
|
-
<tbody><tr>
|
581
|
-
<td class="parameter_name"><p>node</p></td>
|
582
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
583
|
-
<td class="parameter_annotations"> </td>
|
584
|
-
</tr></tbody>
|
585
|
-
</table></div>
|
586
|
-
</div>
|
587
|
-
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.10">0.10</a></p>
|
588
|
-
</div>
|
589
|
-
<hr>
|
590
|
-
<div class="refsect2">
|
591
|
-
<a name="JSON-NODE-HOLDS-OBJECT:CAPS"></a><h3>JSON_NODE_HOLDS_OBJECT()</h3>
|
592
|
-
<pre class="programlisting">#define JSON_NODE_HOLDS_OBJECT(node) (JSON_NODE_HOLDS ((node), JSON_NODE_OBJECT))
|
593
|
-
</pre>
|
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>
|
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>
|
596
|
-
<div class="refsect3">
|
597
|
-
<a name="JSON-NODE-HOLDS-OBJECT.parameters"></a><h4>Parameters</h4>
|
598
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
599
|
-
<colgroup>
|
600
|
-
<col width="150px" class="parameters_name">
|
601
|
-
<col class="parameters_description">
|
602
|
-
<col width="200px" class="parameters_annotations">
|
603
|
-
</colgroup>
|
604
|
-
<tbody><tr>
|
605
|
-
<td class="parameter_name"><p>node</p></td>
|
606
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
607
|
-
<td class="parameter_annotations"> </td>
|
608
|
-
</tr></tbody>
|
609
|
-
</table></div>
|
610
|
-
</div>
|
611
|
-
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.10">0.10</a></p>
|
612
|
-
</div>
|
613
|
-
<hr>
|
614
|
-
<div class="refsect2">
|
615
|
-
<a name="JSON-NODE-HOLDS-ARRAY:CAPS"></a><h3>JSON_NODE_HOLDS_ARRAY()</h3>
|
616
|
-
<pre class="programlisting">#define JSON_NODE_HOLDS_ARRAY(node) (JSON_NODE_HOLDS ((node), JSON_NODE_ARRAY))
|
617
|
-
</pre>
|
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>
|
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>
|
620
|
-
<div class="refsect3">
|
621
|
-
<a name="JSON-NODE-HOLDS-ARRAY.parameters"></a><h4>Parameters</h4>
|
622
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
623
|
-
<colgroup>
|
624
|
-
<col width="150px" class="parameters_name">
|
625
|
-
<col class="parameters_description">
|
626
|
-
<col width="200px" class="parameters_annotations">
|
627
|
-
</colgroup>
|
628
|
-
<tbody><tr>
|
629
|
-
<td class="parameter_name"><p>node</p></td>
|
630
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
631
|
-
<td class="parameter_annotations"> </td>
|
632
|
-
</tr></tbody>
|
633
|
-
</table></div>
|
634
|
-
</div>
|
635
|
-
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.10">0.10</a></p>
|
636
|
-
</div>
|
637
|
-
<hr>
|
638
|
-
<div class="refsect2">
|
639
|
-
<a name="JSON-NODE-HOLDS-NULL:CAPS"></a><h3>JSON_NODE_HOLDS_NULL()</h3>
|
640
|
-
<pre class="programlisting">#define JSON_NODE_HOLDS_NULL(node) (JSON_NODE_HOLDS ((node), JSON_NODE_NULL))
|
641
|
-
</pre>
|
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>
|
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>
|
644
|
-
<div class="refsect3">
|
645
|
-
<a name="JSON-NODE-HOLDS-NULL.parameters"></a><h4>Parameters</h4>
|
646
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
647
|
-
<colgroup>
|
648
|
-
<col width="150px" class="parameters_name">
|
649
|
-
<col class="parameters_description">
|
650
|
-
<col width="200px" class="parameters_annotations">
|
651
|
-
</colgroup>
|
652
|
-
<tbody><tr>
|
653
|
-
<td class="parameter_name"><p>node</p></td>
|
654
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
655
|
-
<td class="parameter_annotations"> </td>
|
656
|
-
</tr></tbody>
|
657
|
-
</table></div>
|
658
|
-
</div>
|
659
|
-
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.10">0.10</a></p>
|
660
|
-
</div>
|
661
|
-
<hr>
|
662
|
-
<div class="refsect2">
|
663
|
-
<a name="json-node-alloc"></a><h3>json_node_alloc ()</h3>
|
664
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
665
|
-
json_node_alloc (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
666
|
-
<p>Allocates a new <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. Use <a class="link" href="json-glib-JSON-Node.html#json-node-init" title="json_node_init ()"><code class="function">json_node_init()</code></a> and its variants
|
667
|
-
to initialize the returned value.</p>
|
668
|
-
<p><span class="annotation">[<acronym title="This symbol is a constructor, not a static method."><span class="acronym">constructor</span></acronym>]</span></p>
|
669
|
-
<div class="refsect3">
|
670
|
-
<a name="json-node-alloc.returns"></a><h4>Returns</h4>
|
671
|
-
<p> the newly allocated <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. Use
|
672
|
-
<a class="link" href="json-glib-JSON-Node.html#json-node-free" title="json_node_free ()"><code class="function">json_node_free()</code></a> to free the resources allocated by this function. </p>
|
673
|
-
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
674
|
-
</div>
|
675
|
-
<p class="since">Since: <a class="link" href="ix09.html#api-index-0.16">0.16</a></p>
|
676
|
-
</div>
|
677
|
-
<hr>
|
678
|
-
<div class="refsect2">
|
679
|
-
<a name="json-node-init"></a><h3>json_node_init ()</h3>
|
680
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
681
|
-
json_node_init (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>,
|
682
|
-
<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNodeType" title="enum JsonNodeType"><span class="type">JsonNodeType</span></a> type</code></em>);</pre>
|
683
|
-
<p>Initializes a <em class="parameter"><code>node</code></em>
|
684
|
-
to a specific <em class="parameter"><code>type</code></em>
|
685
|
-
.</p>
|
686
|
-
<p>If the node has already been initialized once, it will be reset to
|
687
|
-
the given type, and any data contained will be cleared.</p>
|
688
|
-
<div class="refsect3">
|
689
|
-
<a name="json-node-init.parameters"></a><h4>Parameters</h4>
|
690
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
691
|
-
<colgroup>
|
692
|
-
<col width="150px" class="parameters_name">
|
693
|
-
<col class="parameters_description">
|
694
|
-
<col width="200px" class="parameters_annotations">
|
695
|
-
</colgroup>
|
696
|
-
<tbody>
|
697
|
-
<tr>
|
698
|
-
<td class="parameter_name"><p>node</p></td>
|
699
|
-
<td class="parameter_description"><p>the <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> to initialize</p></td>
|
700
|
-
<td class="parameter_annotations"> </td>
|
701
|
-
</tr>
|
702
|
-
<tr>
|
703
|
-
<td class="parameter_name"><p>type</p></td>
|
704
|
-
<td class="parameter_description"><p>the type of JSON node to initialize <em class="parameter"><code>node</code></em>
|
705
|
-
to</p></td>
|
706
|
-
<td class="parameter_annotations"> </td>
|
707
|
-
</tr>
|
708
|
-
</tbody>
|
709
|
-
</table></div>
|
710
|
-
</div>
|
711
|
-
<div class="refsect3">
|
712
|
-
<a name="json-node-init.returns"></a><h4>Returns</h4>
|
713
|
-
<p> the initialized <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. </p>
|
714
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
715
|
-
</div>
|
716
|
-
<p class="since">Since: <a class="link" href="ix09.html#api-index-0.16">0.16</a></p>
|
717
|
-
</div>
|
718
|
-
<hr>
|
719
|
-
<div class="refsect2">
|
720
|
-
<a name="json-node-init-int"></a><h3>json_node_init_int ()</h3>
|
721
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
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>,
|
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>
|
724
|
-
<p>Initializes <em class="parameter"><code>node</code></em>
|
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>
|
726
|
-
into it.</p>
|
727
|
-
<p>If the node has already been initialized once, it will be reset to
|
728
|
-
the given type, and any data contained will be cleared.</p>
|
729
|
-
<div class="refsect3">
|
730
|
-
<a name="json-node-init-int.parameters"></a><h4>Parameters</h4>
|
731
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
732
|
-
<colgroup>
|
733
|
-
<col width="150px" class="parameters_name">
|
734
|
-
<col class="parameters_description">
|
735
|
-
<col width="200px" class="parameters_annotations">
|
736
|
-
</colgroup>
|
737
|
-
<tbody>
|
738
|
-
<tr>
|
739
|
-
<td class="parameter_name"><p>node</p></td>
|
740
|
-
<td class="parameter_description"><p>the <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> to initialize</p></td>
|
741
|
-
<td class="parameter_annotations"> </td>
|
742
|
-
</tr>
|
743
|
-
<tr>
|
744
|
-
<td class="parameter_name"><p>value</p></td>
|
745
|
-
<td class="parameter_description"><p>an integer</p></td>
|
746
|
-
<td class="parameter_annotations"> </td>
|
747
|
-
</tr>
|
748
|
-
</tbody>
|
749
|
-
</table></div>
|
750
|
-
</div>
|
751
|
-
<div class="refsect3">
|
752
|
-
<a name="json-node-init-int.returns"></a><h4>Returns</h4>
|
753
|
-
<p> the initialized <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. </p>
|
754
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
755
|
-
</div>
|
756
|
-
<p class="since">Since: <a class="link" href="ix09.html#api-index-0.16">0.16</a></p>
|
757
|
-
</div>
|
758
|
-
<hr>
|
759
|
-
<div class="refsect2">
|
760
|
-
<a name="json-node-init-double"></a><h3>json_node_init_double ()</h3>
|
761
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
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>,
|
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>
|
764
|
-
<p>Initializes <em class="parameter"><code>node</code></em>
|
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>
|
766
|
-
into it.</p>
|
767
|
-
<p>If the node has already been initialized once, it will be reset to
|
768
|
-
the given type, and any data contained will be cleared.</p>
|
769
|
-
<div class="refsect3">
|
770
|
-
<a name="json-node-init-double.parameters"></a><h4>Parameters</h4>
|
771
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
772
|
-
<colgroup>
|
773
|
-
<col width="150px" class="parameters_name">
|
774
|
-
<col class="parameters_description">
|
775
|
-
<col width="200px" class="parameters_annotations">
|
776
|
-
</colgroup>
|
777
|
-
<tbody>
|
778
|
-
<tr>
|
779
|
-
<td class="parameter_name"><p>node</p></td>
|
780
|
-
<td class="parameter_description"><p>the <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> to initialize</p></td>
|
781
|
-
<td class="parameter_annotations"> </td>
|
782
|
-
</tr>
|
783
|
-
<tr>
|
784
|
-
<td class="parameter_name"><p>value</p></td>
|
785
|
-
<td class="parameter_description"><p>a floating point value</p></td>
|
786
|
-
<td class="parameter_annotations"> </td>
|
787
|
-
</tr>
|
788
|
-
</tbody>
|
789
|
-
</table></div>
|
790
|
-
</div>
|
791
|
-
<div class="refsect3">
|
792
|
-
<a name="json-node-init-double.returns"></a><h4>Returns</h4>
|
793
|
-
<p> the initialized <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. </p>
|
794
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
795
|
-
</div>
|
796
|
-
<p class="since">Since: <a class="link" href="ix09.html#api-index-0.16">0.16</a></p>
|
797
|
-
</div>
|
798
|
-
<hr>
|
799
|
-
<div class="refsect2">
|
800
|
-
<a name="json-node-init-boolean"></a><h3>json_node_init_boolean ()</h3>
|
801
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
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>,
|
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>
|
804
|
-
<p>Initializes <em class="parameter"><code>node</code></em>
|
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>
|
806
|
-
into it.</p>
|
807
|
-
<p>If the node has already been initialized once, it will be reset to
|
808
|
-
the given type, and any data contained will be cleared.</p>
|
809
|
-
<div class="refsect3">
|
810
|
-
<a name="json-node-init-boolean.parameters"></a><h4>Parameters</h4>
|
811
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
812
|
-
<colgroup>
|
813
|
-
<col width="150px" class="parameters_name">
|
814
|
-
<col class="parameters_description">
|
815
|
-
<col width="200px" class="parameters_annotations">
|
816
|
-
</colgroup>
|
817
|
-
<tbody>
|
818
|
-
<tr>
|
819
|
-
<td class="parameter_name"><p>node</p></td>
|
820
|
-
<td class="parameter_description"><p>the <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> to initialize</p></td>
|
821
|
-
<td class="parameter_annotations"> </td>
|
822
|
-
</tr>
|
823
|
-
<tr>
|
824
|
-
<td class="parameter_name"><p>value</p></td>
|
825
|
-
<td class="parameter_description"><p>a boolean value</p></td>
|
826
|
-
<td class="parameter_annotations"> </td>
|
827
|
-
</tr>
|
828
|
-
</tbody>
|
829
|
-
</table></div>
|
830
|
-
</div>
|
831
|
-
<div class="refsect3">
|
832
|
-
<a name="json-node-init-boolean.returns"></a><h4>Returns</h4>
|
833
|
-
<p> the initialized <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. </p>
|
834
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
835
|
-
</div>
|
836
|
-
<p class="since">Since: <a class="link" href="ix09.html#api-index-0.16">0.16</a></p>
|
837
|
-
</div>
|
838
|
-
<hr>
|
839
|
-
<div class="refsect2">
|
840
|
-
<a name="json-node-init-string"></a><h3>json_node_init_string ()</h3>
|
841
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
842
|
-
json_node_init_string (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>,
|
843
|
-
<em class="parameter"><code>const <span class="type">char</span> *value</code></em>);</pre>
|
844
|
-
<p>Initializes <em class="parameter"><code>node</code></em>
|
845
|
-
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>
|
846
|
-
into it.</p>
|
847
|
-
<p>If the node has already been initialized once, it will be reset to
|
848
|
-
the given type, and any data contained will be cleared.</p>
|
849
|
-
<div class="refsect3">
|
850
|
-
<a name="json-node-init-string.parameters"></a><h4>Parameters</h4>
|
851
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
852
|
-
<colgroup>
|
853
|
-
<col width="150px" class="parameters_name">
|
854
|
-
<col class="parameters_description">
|
855
|
-
<col width="200px" class="parameters_annotations">
|
856
|
-
</colgroup>
|
857
|
-
<tbody>
|
858
|
-
<tr>
|
859
|
-
<td class="parameter_name"><p>node</p></td>
|
860
|
-
<td class="parameter_description"><p>the <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> to initialize</p></td>
|
861
|
-
<td class="parameter_annotations"> </td>
|
862
|
-
</tr>
|
863
|
-
<tr>
|
864
|
-
<td class="parameter_name"><p>value</p></td>
|
865
|
-
<td class="parameter_description"><p> a string value. </p></td>
|
866
|
-
<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>
|
867
|
-
</tr>
|
868
|
-
</tbody>
|
869
|
-
</table></div>
|
870
|
-
</div>
|
871
|
-
<div class="refsect3">
|
872
|
-
<a name="json-node-init-string.returns"></a><h4>Returns</h4>
|
873
|
-
<p> the initialized <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. </p>
|
874
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
875
|
-
</div>
|
876
|
-
<p class="since">Since: <a class="link" href="ix09.html#api-index-0.16">0.16</a></p>
|
877
|
-
</div>
|
878
|
-
<hr>
|
879
|
-
<div class="refsect2">
|
880
|
-
<a name="json-node-init-null"></a><h3>json_node_init_null ()</h3>
|
881
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
882
|
-
json_node_init_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>
|
883
|
-
<p>Initializes <em class="parameter"><code>node</code></em>
|
884
|
-
to <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-NULL:CAPS"><code class="literal">JSON_NODE_NULL</code></a>.</p>
|
885
|
-
<p>If the node has already been initialized once, it will be reset to
|
886
|
-
the given type, and any data contained will be cleared.</p>
|
887
|
-
<div class="refsect3">
|
888
|
-
<a name="json-node-init-null.parameters"></a><h4>Parameters</h4>
|
889
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
890
|
-
<colgroup>
|
891
|
-
<col width="150px" class="parameters_name">
|
892
|
-
<col class="parameters_description">
|
893
|
-
<col width="200px" class="parameters_annotations">
|
894
|
-
</colgroup>
|
895
|
-
<tbody><tr>
|
896
|
-
<td class="parameter_name"><p>node</p></td>
|
897
|
-
<td class="parameter_description"><p>the <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> to initialize</p></td>
|
898
|
-
<td class="parameter_annotations"> </td>
|
899
|
-
</tr></tbody>
|
900
|
-
</table></div>
|
901
|
-
</div>
|
902
|
-
<div class="refsect3">
|
903
|
-
<a name="json-node-init-null.returns"></a><h4>Returns</h4>
|
904
|
-
<p> the initialized <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. </p>
|
905
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
906
|
-
</div>
|
907
|
-
<p class="since">Since: <a class="link" href="ix09.html#api-index-0.16">0.16</a></p>
|
908
|
-
</div>
|
909
|
-
<hr>
|
910
|
-
<div class="refsect2">
|
911
|
-
<a name="json-node-init-object"></a><h3>json_node_init_object ()</h3>
|
912
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
913
|
-
json_node_init_object (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>,
|
914
|
-
<em class="parameter"><code><a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="type">JsonObject</span></a> *object</code></em>);</pre>
|
915
|
-
<p>Initializes <em class="parameter"><code>node</code></em>
|
916
|
-
to <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-OBJECT:CAPS"><code class="literal">JSON_NODE_OBJECT</code></a> and sets <em class="parameter"><code>object</code></em>
|
917
|
-
into it.</p>
|
918
|
-
<p>This function will take a reference on <em class="parameter"><code>object</code></em>
|
919
|
-
.</p>
|
920
|
-
<p>If the node has already been initialized once, it will be reset to
|
921
|
-
the given type, and any data contained will be cleared.</p>
|
922
|
-
<div class="refsect3">
|
923
|
-
<a name="json-node-init-object.parameters"></a><h4>Parameters</h4>
|
924
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
925
|
-
<colgroup>
|
926
|
-
<col width="150px" class="parameters_name">
|
927
|
-
<col class="parameters_description">
|
928
|
-
<col width="200px" class="parameters_annotations">
|
929
|
-
</colgroup>
|
930
|
-
<tbody>
|
931
|
-
<tr>
|
932
|
-
<td class="parameter_name"><p>node</p></td>
|
933
|
-
<td class="parameter_description"><p>the <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> to initialize</p></td>
|
934
|
-
<td class="parameter_annotations"> </td>
|
935
|
-
</tr>
|
936
|
-
<tr>
|
937
|
-
<td class="parameter_name"><p>object</p></td>
|
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>
|
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>
|
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>
|
941
|
-
</tr>
|
942
|
-
</tbody>
|
943
|
-
</table></div>
|
944
|
-
</div>
|
945
|
-
<div class="refsect3">
|
946
|
-
<a name="json-node-init-object.returns"></a><h4>Returns</h4>
|
947
|
-
<p> the initialized <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. </p>
|
948
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
949
|
-
</div>
|
950
|
-
<p class="since">Since: <a class="link" href="ix09.html#api-index-0.16">0.16</a></p>
|
951
|
-
</div>
|
952
|
-
<hr>
|
953
|
-
<div class="refsect2">
|
954
|
-
<a name="json-node-init-array"></a><h3>json_node_init_array ()</h3>
|
955
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
956
|
-
json_node_init_array (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>,
|
957
|
-
<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>);</pre>
|
958
|
-
<p>Initializes <em class="parameter"><code>node</code></em>
|
959
|
-
to <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-ARRAY:CAPS"><code class="literal">JSON_NODE_ARRAY</code></a> and sets <em class="parameter"><code>array</code></em>
|
960
|
-
into it.</p>
|
961
|
-
<p>This function will take a reference on <em class="parameter"><code>array</code></em>
|
962
|
-
.</p>
|
963
|
-
<p>If the node has already been initialized once, it will be reset to
|
964
|
-
the given type, and any data contained will be cleared.</p>
|
965
|
-
<div class="refsect3">
|
966
|
-
<a name="json-node-init-array.parameters"></a><h4>Parameters</h4>
|
967
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
968
|
-
<colgroup>
|
969
|
-
<col width="150px" class="parameters_name">
|
970
|
-
<col class="parameters_description">
|
971
|
-
<col width="200px" class="parameters_annotations">
|
972
|
-
</colgroup>
|
973
|
-
<tbody>
|
974
|
-
<tr>
|
975
|
-
<td class="parameter_name"><p>node</p></td>
|
976
|
-
<td class="parameter_description"><p>the <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> to initialize</p></td>
|
977
|
-
<td class="parameter_annotations"> </td>
|
978
|
-
</tr>
|
979
|
-
<tr>
|
980
|
-
<td class="parameter_name"><p>array</p></td>
|
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>
|
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>
|
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>
|
984
|
-
</tr>
|
985
|
-
</tbody>
|
986
|
-
</table></div>
|
987
|
-
</div>
|
988
|
-
<div class="refsect3">
|
989
|
-
<a name="json-node-init-array.returns"></a><h4>Returns</h4>
|
990
|
-
<p> the initialized <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. </p>
|
991
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
992
|
-
</div>
|
993
|
-
<p class="since">Since: <a class="link" href="ix09.html#api-index-0.16">0.16</a></p>
|
994
|
-
</div>
|
995
|
-
<hr>
|
996
|
-
<div class="refsect2">
|
997
|
-
<a name="json-node-new"></a><h3>json_node_new ()</h3>
|
998
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
999
|
-
json_node_new (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNodeType" title="enum JsonNodeType"><span class="type">JsonNodeType</span></a> type</code></em>);</pre>
|
1000
|
-
<p>Creates a new <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> of <em class="parameter"><code>type</code></em>
|
1001
|
-
.</p>
|
1002
|
-
<p>This is a convenience function for <a class="link" href="json-glib-JSON-Node.html#json-node-alloc" title="json_node_alloc ()"><code class="function">json_node_alloc()</code></a> and <a class="link" href="json-glib-JSON-Node.html#json-node-init" title="json_node_init ()"><code class="function">json_node_init()</code></a>,
|
1003
|
-
and it's the equivalent of:</p>
|
1004
|
-
<div class="informalexample">
|
1005
|
-
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
1006
|
-
<tbody>
|
1007
|
-
<tr>
|
1008
|
-
<td class="listing_lines" align="right"><pre>1</pre></td>
|
1009
|
-
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="json-glib-JSON-Node.html#json-node-init">json_node_init</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="json-glib-JSON-Node.html#json-node-alloc">json_node_alloc</a></span><span class="normal"> </span><span class="symbol">(),</span><span class="normal"> type</span><span class="symbol">);</span></pre></td>
|
1010
|
-
</tr>
|
1011
|
-
</tbody>
|
1012
|
-
</table>
|
1013
|
-
</div>
|
1014
|
-
|
1015
|
-
<p></p>
|
1016
|
-
<p><span class="annotation">[<acronym title="This symbol is a constructor, not a static method."><span class="acronym">constructor</span></acronym>]</span></p>
|
1017
|
-
<div class="refsect3">
|
1018
|
-
<a name="json-node-new.parameters"></a><h4>Parameters</h4>
|
1019
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1020
|
-
<colgroup>
|
1021
|
-
<col width="150px" class="parameters_name">
|
1022
|
-
<col class="parameters_description">
|
1023
|
-
<col width="200px" class="parameters_annotations">
|
1024
|
-
</colgroup>
|
1025
|
-
<tbody><tr>
|
1026
|
-
<td class="parameter_name"><p>type</p></td>
|
1027
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNodeType" title="enum JsonNodeType"><span class="type">JsonNodeType</span></a></p></td>
|
1028
|
-
<td class="parameter_annotations"> </td>
|
1029
|
-
</tr></tbody>
|
1030
|
-
</table></div>
|
1031
|
-
</div>
|
1032
|
-
<div class="refsect3">
|
1033
|
-
<a name="json-node-new.returns"></a><h4>Returns</h4>
|
1034
|
-
<p> the newly created <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. </p>
|
1035
|
-
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
1036
|
-
</div>
|
1037
|
-
</div>
|
1038
|
-
<hr>
|
1039
|
-
<div class="refsect2">
|
1040
|
-
<a name="json-node-copy"></a><h3>json_node_copy ()</h3>
|
1041
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
1042
|
-
json_node_copy (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
|
1043
|
-
<p>Copies <em class="parameter"><code>node</code></em>
|
1044
|
-
. If the node contains complex data types, their reference
|
1045
|
-
counts are increased, regardless of whether the node is mutable or
|
1046
|
-
immutable.</p>
|
1047
|
-
<p>The copy will be immutable if, and only if, <em class="parameter"><code>node</code></em>
|
1048
|
-
is immutable. However,
|
1049
|
-
there should be no need to copy an immutable node.</p>
|
1050
|
-
<div class="refsect3">
|
1051
|
-
<a name="json-node-copy.parameters"></a><h4>Parameters</h4>
|
1052
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1053
|
-
<colgroup>
|
1054
|
-
<col width="150px" class="parameters_name">
|
1055
|
-
<col class="parameters_description">
|
1056
|
-
<col width="200px" class="parameters_annotations">
|
1057
|
-
</colgroup>
|
1058
|
-
<tbody><tr>
|
1059
|
-
<td class="parameter_name"><p>node</p></td>
|
1060
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
1061
|
-
<td class="parameter_annotations"> </td>
|
1062
|
-
</tr></tbody>
|
1063
|
-
</table></div>
|
1064
|
-
</div>
|
1065
|
-
<div class="refsect3">
|
1066
|
-
<a name="json-node-copy.returns"></a><h4>Returns</h4>
|
1067
|
-
<p> the copied <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. </p>
|
1068
|
-
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
1069
|
-
</div>
|
1070
|
-
</div>
|
1071
|
-
<hr>
|
1072
|
-
<div class="refsect2">
|
1073
|
-
<a name="json-node-free"></a><h3>json_node_free ()</h3>
|
1074
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1075
|
-
json_node_free (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
|
1076
|
-
<p>Frees the resources allocated by <em class="parameter"><code>node</code></em>
|
1077
|
-
.</p>
|
1078
|
-
<div class="refsect3">
|
1079
|
-
<a name="json-node-free.parameters"></a><h4>Parameters</h4>
|
1080
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1081
|
-
<colgroup>
|
1082
|
-
<col width="150px" class="parameters_name">
|
1083
|
-
<col class="parameters_description">
|
1084
|
-
<col width="200px" class="parameters_annotations">
|
1085
|
-
</colgroup>
|
1086
|
-
<tbody><tr>
|
1087
|
-
<td class="parameter_name"><p>node</p></td>
|
1088
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
1089
|
-
<td class="parameter_annotations"> </td>
|
1090
|
-
</tr></tbody>
|
1091
|
-
</table></div>
|
1092
|
-
</div>
|
1093
|
-
</div>
|
1094
|
-
<hr>
|
1095
|
-
<div class="refsect2">
|
1096
|
-
<a name="json-node-ref"></a><h3>json_node_ref ()</h3>
|
1097
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
1098
|
-
json_node_ref (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
|
1099
|
-
<p>Increment the reference count of <em class="parameter"><code>node</code></em>
|
1100
|
-
.</p>
|
1101
|
-
<div class="refsect3">
|
1102
|
-
<a name="json-node-ref.parameters"></a><h4>Parameters</h4>
|
1103
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1104
|
-
<colgroup>
|
1105
|
-
<col width="150px" class="parameters_name">
|
1106
|
-
<col class="parameters_description">
|
1107
|
-
<col width="200px" class="parameters_annotations">
|
1108
|
-
</colgroup>
|
1109
|
-
<tbody><tr>
|
1110
|
-
<td class="parameter_name"><p>node</p></td>
|
1111
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
1112
|
-
<td class="parameter_annotations"> </td>
|
1113
|
-
</tr></tbody>
|
1114
|
-
</table></div>
|
1115
|
-
</div>
|
1116
|
-
<div class="refsect3">
|
1117
|
-
<a name="json-node-ref.returns"></a><h4>Returns</h4>
|
1118
|
-
<p> a pointer to <em class="parameter"><code>node</code></em>
|
1119
|
-
. </p>
|
1120
|
-
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
1121
|
-
</div>
|
1122
|
-
<p class="since">Since: <a class="link" href="ix11.html#api-index-1.2">1.2</a></p>
|
1123
|
-
</div>
|
1124
|
-
<hr>
|
1125
|
-
<div class="refsect2">
|
1126
|
-
<a name="json-node-unref"></a><h3>json_node_unref ()</h3>
|
1127
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1128
|
-
json_node_unref (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
|
1129
|
-
<p>Decrement the reference count of <em class="parameter"><code>node</code></em>
|
1130
|
-
. If it reaches zero, the node is
|
1131
|
-
freed.</p>
|
1132
|
-
<div class="refsect3">
|
1133
|
-
<a name="json-node-unref.parameters"></a><h4>Parameters</h4>
|
1134
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1135
|
-
<colgroup>
|
1136
|
-
<col width="150px" class="parameters_name">
|
1137
|
-
<col class="parameters_description">
|
1138
|
-
<col width="200px" class="parameters_annotations">
|
1139
|
-
</colgroup>
|
1140
|
-
<tbody><tr>
|
1141
|
-
<td class="parameter_name"><p>node</p></td>
|
1142
|
-
<td class="parameter_description"><p> a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. </p></td>
|
1143
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td>
|
1144
|
-
</tr></tbody>
|
1145
|
-
</table></div>
|
1146
|
-
</div>
|
1147
|
-
<p class="since">Since: <a class="link" href="ix11.html#api-index-1.2">1.2</a></p>
|
1148
|
-
</div>
|
1149
|
-
<hr>
|
1150
|
-
<div class="refsect2">
|
1151
|
-
<a name="json-node-is-immutable"></a><h3>json_node_is_immutable ()</h3>
|
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>
|
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>
|
1154
|
-
<p>Check whether the given <em class="parameter"><code>node</code></em>
|
1155
|
-
has been marked as immutable by calling
|
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>
|
1157
|
-
<div class="refsect3">
|
1158
|
-
<a name="json-node-is-immutable.parameters"></a><h4>Parameters</h4>
|
1159
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1160
|
-
<colgroup>
|
1161
|
-
<col width="150px" class="parameters_name">
|
1162
|
-
<col class="parameters_description">
|
1163
|
-
<col width="200px" class="parameters_annotations">
|
1164
|
-
</colgroup>
|
1165
|
-
<tbody><tr>
|
1166
|
-
<td class="parameter_name"><p>node</p></td>
|
1167
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
1168
|
-
<td class="parameter_annotations"> </td>
|
1169
|
-
</tr></tbody>
|
1170
|
-
</table></div>
|
1171
|
-
</div>
|
1172
|
-
<div class="refsect3">
|
1173
|
-
<a name="json-node-is-immutable.returns"></a><h4>Returns</h4>
|
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>
|
1175
|
-
is immutable</p>
|
1176
|
-
</div>
|
1177
|
-
<p class="since">Since: <a class="link" href="ix11.html#api-index-1.2">1.2</a></p>
|
1178
|
-
</div>
|
1179
|
-
<hr>
|
1180
|
-
<div class="refsect2">
|
1181
|
-
<a name="json-node-seal"></a><h3>json_node_seal ()</h3>
|
1182
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1183
|
-
json_node_seal (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
|
1184
|
-
<p>Seals the <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>, making it immutable to further changes. In order to be
|
1185
|
-
sealed, the <em class="parameter"><code>node</code></em>
|
1186
|
-
must have a type and value set. The value will be
|
1187
|
-
recursively sealed — if the node holds an object, that <a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="type">JsonObject</span></a> will be
|
1188
|
-
sealed, etc.</p>
|
1189
|
-
<p>If the <em class="parameter"><code>node</code></em>
|
1190
|
-
is already immutable, this is a no-op.</p>
|
1191
|
-
<div class="refsect3">
|
1192
|
-
<a name="json-node-seal.parameters"></a><h4>Parameters</h4>
|
1193
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1194
|
-
<colgroup>
|
1195
|
-
<col width="150px" class="parameters_name">
|
1196
|
-
<col class="parameters_description">
|
1197
|
-
<col width="200px" class="parameters_annotations">
|
1198
|
-
</colgroup>
|
1199
|
-
<tbody><tr>
|
1200
|
-
<td class="parameter_name"><p>node</p></td>
|
1201
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
1202
|
-
<td class="parameter_annotations"> </td>
|
1203
|
-
</tr></tbody>
|
1204
|
-
</table></div>
|
1205
|
-
</div>
|
1206
|
-
<p class="since">Since: <a class="link" href="ix11.html#api-index-1.2">1.2</a></p>
|
1207
|
-
</div>
|
1208
|
-
<hr>
|
1209
|
-
<div class="refsect2">
|
1210
|
-
<a name="json-node-hash"></a><h3>json_node_hash ()</h3>
|
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>
|
1213
|
-
<p>Calculate a hash value for the given <em class="parameter"><code>key</code></em>
|
1214
|
-
(a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>).</p>
|
1215
|
-
<p>The hash is calculated over the node and its value, recursively. If the node
|
1216
|
-
is immutable, this is a fast operation; otherwise, it scales proportionally
|
1217
|
-
with the size of the node’s value (for example, with the number of members
|
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>
|
1219
|
-
<div class="refsect3">
|
1220
|
-
<a name="json-node-hash.parameters"></a><h4>Parameters</h4>
|
1221
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1222
|
-
<colgroup>
|
1223
|
-
<col width="150px" class="parameters_name">
|
1224
|
-
<col class="parameters_description">
|
1225
|
-
<col width="200px" class="parameters_annotations">
|
1226
|
-
</colgroup>
|
1227
|
-
<tbody><tr>
|
1228
|
-
<td class="parameter_name"><p>key</p></td>
|
1229
|
-
<td class="parameter_description"><p> a JSON node to hash. </p></td>
|
1230
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> JsonNode]</span></td>
|
1231
|
-
</tr></tbody>
|
1232
|
-
</table></div>
|
1233
|
-
</div>
|
1234
|
-
<div class="refsect3">
|
1235
|
-
<a name="json-node-hash.returns"></a><h4>Returns</h4>
|
1236
|
-
<p> hash value for <em class="parameter"><code>key</code></em>
|
1237
|
-
</p>
|
1238
|
-
</div>
|
1239
|
-
<p class="since">Since: <a class="link" href="ix11.html#api-index-1.2">1.2</a></p>
|
1240
|
-
</div>
|
1241
|
-
<hr>
|
1242
|
-
<div class="refsect2">
|
1243
|
-
<a name="json-node-equal"></a><h3>json_node_equal ()</h3>
|
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>
|
1247
|
-
<p>Check whether <em class="parameter"><code>a</code></em>
|
1248
|
-
and <em class="parameter"><code>b</code></em>
|
1249
|
-
are equal <a href="json-glib-JSON-Node.html#JsonNode-struct"><span class="type">JsonNodes</span></a>, meaning they have the same
|
1250
|
-
type and same values (checked recursively). Note that integer values are
|
1251
|
-
compared numerically, ignoring type, so a double value 4.0 is equal to the
|
1252
|
-
integer value 4.</p>
|
1253
|
-
<div class="refsect3">
|
1254
|
-
<a name="json-node-equal.parameters"></a><h4>Parameters</h4>
|
1255
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1256
|
-
<colgroup>
|
1257
|
-
<col width="150px" class="parameters_name">
|
1258
|
-
<col class="parameters_description">
|
1259
|
-
<col width="200px" class="parameters_annotations">
|
1260
|
-
</colgroup>
|
1261
|
-
<tbody>
|
1262
|
-
<tr>
|
1263
|
-
<td class="parameter_name"><p>a</p></td>
|
1264
|
-
<td class="parameter_description"><p> a JSON node. </p></td>
|
1265
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> JsonNode]</span></td>
|
1266
|
-
</tr>
|
1267
|
-
<tr>
|
1268
|
-
<td class="parameter_name"><p>b</p></td>
|
1269
|
-
<td class="parameter_description"><p> another JSON node. </p></td>
|
1270
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> JsonNode]</span></td>
|
1271
|
-
</tr>
|
1272
|
-
</tbody>
|
1273
|
-
</table></div>
|
1274
|
-
</div>
|
1275
|
-
<div class="refsect3">
|
1276
|
-
<a name="json-node-equal.returns"></a><h4>Returns</h4>
|
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>
|
1278
|
-
and <em class="parameter"><code>b</code></em>
|
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>
|
1280
|
-
</div>
|
1281
|
-
<p class="since">Since: <a class="link" href="ix11.html#api-index-1.2">1.2</a></p>
|
1282
|
-
</div>
|
1283
|
-
<hr>
|
1284
|
-
<div class="refsect2">
|
1285
|
-
<a name="json-node-set-array"></a><h3>json_node_set_array ()</h3>
|
1286
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1287
|
-
json_node_set_array (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>,
|
1288
|
-
<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>);</pre>
|
1289
|
-
<p>Sets <em class="parameter"><code>array</code></em>
|
1290
|
-
inside <em class="parameter"><code>node</code></em>
|
1291
|
-
and increases the <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> reference count.</p>
|
1292
|
-
<p>It is an error to call this on an immutable node.</p>
|
1293
|
-
<div class="refsect3">
|
1294
|
-
<a name="json-node-set-array.parameters"></a><h4>Parameters</h4>
|
1295
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1296
|
-
<colgroup>
|
1297
|
-
<col width="150px" class="parameters_name">
|
1298
|
-
<col class="parameters_description">
|
1299
|
-
<col width="200px" class="parameters_annotations">
|
1300
|
-
</colgroup>
|
1301
|
-
<tbody>
|
1302
|
-
<tr>
|
1303
|
-
<td class="parameter_name"><p>node</p></td>
|
1304
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> initialized to <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-ARRAY:CAPS"><code class="literal">JSON_NODE_ARRAY</code></a></p></td>
|
1305
|
-
<td class="parameter_annotations"> </td>
|
1306
|
-
</tr>
|
1307
|
-
<tr>
|
1308
|
-
<td class="parameter_name"><p>array</p></td>
|
1309
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
1310
|
-
<td class="parameter_annotations"> </td>
|
1311
|
-
</tr>
|
1312
|
-
</tbody>
|
1313
|
-
</table></div>
|
1314
|
-
</div>
|
1315
|
-
</div>
|
1316
|
-
<hr>
|
1317
|
-
<div class="refsect2">
|
1318
|
-
<a name="json-node-take-array"></a><h3>json_node_take_array ()</h3>
|
1319
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1320
|
-
json_node_take_array (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>,
|
1321
|
-
<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>);</pre>
|
1322
|
-
<p>Sets <em class="parameter"><code>array</code></em>
|
1323
|
-
into <em class="parameter"><code>node</code></em>
|
1324
|
-
without increasing the <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> reference count.</p>
|
1325
|
-
<p>It is an error to call this on an immutable node.</p>
|
1326
|
-
<div class="refsect3">
|
1327
|
-
<a name="json-node-take-array.parameters"></a><h4>Parameters</h4>
|
1328
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1329
|
-
<colgroup>
|
1330
|
-
<col width="150px" class="parameters_name">
|
1331
|
-
<col class="parameters_description">
|
1332
|
-
<col width="200px" class="parameters_annotations">
|
1333
|
-
</colgroup>
|
1334
|
-
<tbody>
|
1335
|
-
<tr>
|
1336
|
-
<td class="parameter_name"><p>node</p></td>
|
1337
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> initialized to <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-ARRAY:CAPS"><code class="literal">JSON_NODE_ARRAY</code></a></p></td>
|
1338
|
-
<td class="parameter_annotations"> </td>
|
1339
|
-
</tr>
|
1340
|
-
<tr>
|
1341
|
-
<td class="parameter_name"><p>array</p></td>
|
1342
|
-
<td class="parameter_description"><p> a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a>. </p></td>
|
1343
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td>
|
1344
|
-
</tr>
|
1345
|
-
</tbody>
|
1346
|
-
</table></div>
|
1347
|
-
</div>
|
1348
|
-
</div>
|
1349
|
-
<hr>
|
1350
|
-
<div class="refsect2">
|
1351
|
-
<a name="json-node-get-array"></a><h3>json_node_get_array ()</h3>
|
1352
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="returnvalue">JsonArray</span></a> *
|
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>
|
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>
|
1356
|
-
<div class="refsect3">
|
1357
|
-
<a name="json-node-get-array.parameters"></a><h4>Parameters</h4>
|
1358
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1359
|
-
<colgroup>
|
1360
|
-
<col width="150px" class="parameters_name">
|
1361
|
-
<col class="parameters_description">
|
1362
|
-
<col width="200px" class="parameters_annotations">
|
1363
|
-
</colgroup>
|
1364
|
-
<tbody><tr>
|
1365
|
-
<td class="parameter_name"><p>node</p></td>
|
1366
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
1367
|
-
<td class="parameter_annotations"> </td>
|
1368
|
-
</tr></tbody>
|
1369
|
-
</table></div>
|
1370
|
-
</div>
|
1371
|
-
<div class="refsect3">
|
1372
|
-
<a name="json-node-get-array.returns"></a><h4>Returns</h4>
|
1373
|
-
<p> the <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a>. </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>
|
1375
|
-
</div>
|
1376
|
-
</div>
|
1377
|
-
<hr>
|
1378
|
-
<div class="refsect2">
|
1379
|
-
<a name="json-node-dup-array"></a><h3>json_node_dup_array ()</h3>
|
1380
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="returnvalue">JsonArray</span></a> *
|
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>
|
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
|
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>
|
1385
|
-
<div class="refsect3">
|
1386
|
-
<a name="json-node-dup-array.parameters"></a><h4>Parameters</h4>
|
1387
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1388
|
-
<colgroup>
|
1389
|
-
<col width="150px" class="parameters_name">
|
1390
|
-
<col class="parameters_description">
|
1391
|
-
<col width="200px" class="parameters_annotations">
|
1392
|
-
</colgroup>
|
1393
|
-
<tbody><tr>
|
1394
|
-
<td class="parameter_name"><p>node</p></td>
|
1395
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
1396
|
-
<td class="parameter_annotations"> </td>
|
1397
|
-
</tr></tbody>
|
1398
|
-
</table></div>
|
1399
|
-
</div>
|
1400
|
-
<div class="refsect3">
|
1401
|
-
<a name="json-node-dup-array.returns"></a><h4>Returns</h4>
|
1402
|
-
<p> the <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> with its reference
|
1403
|
-
count increased. </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>
|
1405
|
-
</div>
|
1406
|
-
</div>
|
1407
|
-
<hr>
|
1408
|
-
<div class="refsect2">
|
1409
|
-
<a name="json-node-set-object"></a><h3>json_node_set_object ()</h3>
|
1410
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1411
|
-
json_node_set_object (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>,
|
1412
|
-
<em class="parameter"><code><a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="type">JsonObject</span></a> *object</code></em>);</pre>
|
1413
|
-
<p>Sets <em class="parameter"><code>objects</code></em>
|
1414
|
-
inside <em class="parameter"><code>node</code></em>
|
1415
|
-
. The reference count of <em class="parameter"><code>object</code></em>
|
1416
|
-
is increased.</p>
|
1417
|
-
<p>If <em class="parameter"><code>object</code></em>
|
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>
|
1419
|
-
<p>It is an error to call this on an immutable node.</p>
|
1420
|
-
<div class="refsect3">
|
1421
|
-
<a name="json-node-set-object.parameters"></a><h4>Parameters</h4>
|
1422
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1423
|
-
<colgroup>
|
1424
|
-
<col width="150px" class="parameters_name">
|
1425
|
-
<col class="parameters_description">
|
1426
|
-
<col width="200px" class="parameters_annotations">
|
1427
|
-
</colgroup>
|
1428
|
-
<tbody>
|
1429
|
-
<tr>
|
1430
|
-
<td class="parameter_name"><p>node</p></td>
|
1431
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> initialized to <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-OBJECT:CAPS"><code class="literal">JSON_NODE_OBJECT</code></a></p></td>
|
1432
|
-
<td class="parameter_annotations"> </td>
|
1433
|
-
</tr>
|
1434
|
-
<tr>
|
1435
|
-
<td class="parameter_name"><p>object</p></td>
|
1436
|
-
<td class="parameter_description"><p> a <a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="type">JsonObject</span></a>. </p></td>
|
1437
|
-
<td class="parameter_annotations"><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></td>
|
1438
|
-
</tr>
|
1439
|
-
</tbody>
|
1440
|
-
</table></div>
|
1441
|
-
</div>
|
1442
|
-
</div>
|
1443
|
-
<hr>
|
1444
|
-
<div class="refsect2">
|
1445
|
-
<a name="json-node-take-object"></a><h3>json_node_take_object ()</h3>
|
1446
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1447
|
-
json_node_take_object (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>,
|
1448
|
-
<em class="parameter"><code><a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="type">JsonObject</span></a> *object</code></em>);</pre>
|
1449
|
-
<p>Sets <em class="parameter"><code>object</code></em>
|
1450
|
-
inside <em class="parameter"><code>node</code></em>
|
1451
|
-
. The reference count of <em class="parameter"><code>object</code></em>
|
1452
|
-
is not increased.</p>
|
1453
|
-
<p>It is an error to call this on an immutable node.</p>
|
1454
|
-
<div class="refsect3">
|
1455
|
-
<a name="json-node-take-object.parameters"></a><h4>Parameters</h4>
|
1456
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1457
|
-
<colgroup>
|
1458
|
-
<col width="150px" class="parameters_name">
|
1459
|
-
<col class="parameters_description">
|
1460
|
-
<col width="200px" class="parameters_annotations">
|
1461
|
-
</colgroup>
|
1462
|
-
<tbody>
|
1463
|
-
<tr>
|
1464
|
-
<td class="parameter_name"><p>node</p></td>
|
1465
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> initialized to <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-OBJECT:CAPS"><code class="literal">JSON_NODE_OBJECT</code></a></p></td>
|
1466
|
-
<td class="parameter_annotations"> </td>
|
1467
|
-
</tr>
|
1468
|
-
<tr>
|
1469
|
-
<td class="parameter_name"><p>object</p></td>
|
1470
|
-
<td class="parameter_description"><p> a <a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="type">JsonObject</span></a>. </p></td>
|
1471
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td>
|
1472
|
-
</tr>
|
1473
|
-
</tbody>
|
1474
|
-
</table></div>
|
1475
|
-
</div>
|
1476
|
-
</div>
|
1477
|
-
<hr>
|
1478
|
-
<div class="refsect2">
|
1479
|
-
<a name="json-node-get-object"></a><h3>json_node_get_object ()</h3>
|
1480
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="returnvalue">JsonObject</span></a> *
|
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>
|
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>
|
1484
|
-
<div class="refsect3">
|
1485
|
-
<a name="json-node-get-object.parameters"></a><h4>Parameters</h4>
|
1486
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1487
|
-
<colgroup>
|
1488
|
-
<col width="150px" class="parameters_name">
|
1489
|
-
<col class="parameters_description">
|
1490
|
-
<col width="200px" class="parameters_annotations">
|
1491
|
-
</colgroup>
|
1492
|
-
<tbody><tr>
|
1493
|
-
<td class="parameter_name"><p>node</p></td>
|
1494
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
1495
|
-
<td class="parameter_annotations"> </td>
|
1496
|
-
</tr></tbody>
|
1497
|
-
</table></div>
|
1498
|
-
</div>
|
1499
|
-
<div class="refsect3">
|
1500
|
-
<a name="json-node-get-object.returns"></a><h4>Returns</h4>
|
1501
|
-
<p> the <a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="type">JsonObject</span></a>. </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>
|
1503
|
-
</div>
|
1504
|
-
</div>
|
1505
|
-
<hr>
|
1506
|
-
<div class="refsect2">
|
1507
|
-
<a name="json-node-dup-object"></a><h3>json_node_dup_object ()</h3>
|
1508
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="returnvalue">JsonObject</span></a> *
|
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>
|
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>
|
1511
|
-
. The reference count of
|
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>
|
1514
|
-
<div class="refsect3">
|
1515
|
-
<a name="json-node-dup-object.parameters"></a><h4>Parameters</h4>
|
1516
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1517
|
-
<colgroup>
|
1518
|
-
<col width="150px" class="parameters_name">
|
1519
|
-
<col class="parameters_description">
|
1520
|
-
<col width="200px" class="parameters_annotations">
|
1521
|
-
</colgroup>
|
1522
|
-
<tbody><tr>
|
1523
|
-
<td class="parameter_name"><p>node</p></td>
|
1524
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
1525
|
-
<td class="parameter_annotations"> </td>
|
1526
|
-
</tr></tbody>
|
1527
|
-
</table></div>
|
1528
|
-
</div>
|
1529
|
-
<div class="refsect3">
|
1530
|
-
<a name="json-node-dup-object.returns"></a><h4>Returns</h4>
|
1531
|
-
<p> the <a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="type">JsonObject</span></a>. </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>
|
1533
|
-
</div>
|
1534
|
-
</div>
|
1535
|
-
<hr>
|
1536
|
-
<div class="refsect2">
|
1537
|
-
<a name="json-node-set-value"></a><h3>json_node_set_value ()</h3>
|
1538
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
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>,
|
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>
|
1541
|
-
<p>Sets <em class="parameter"><code>value</code></em>
|
1542
|
-
inside <em class="parameter"><code>node</code></em>
|
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>
|
1544
|
-
<p>It is an error to call this on an immutable node.</p>
|
1545
|
-
<div class="refsect3">
|
1546
|
-
<a name="json-node-set-value.parameters"></a><h4>Parameters</h4>
|
1547
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1548
|
-
<colgroup>
|
1549
|
-
<col width="150px" class="parameters_name">
|
1550
|
-
<col class="parameters_description">
|
1551
|
-
<col width="200px" class="parameters_annotations">
|
1552
|
-
</colgroup>
|
1553
|
-
<tbody>
|
1554
|
-
<tr>
|
1555
|
-
<td class="parameter_name"><p>node</p></td>
|
1556
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> initialized to <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-VALUE:CAPS"><code class="literal">JSON_NODE_VALUE</code></a></p></td>
|
1557
|
-
<td class="parameter_annotations"> </td>
|
1558
|
-
</tr>
|
1559
|
-
<tr>
|
1560
|
-
<td class="parameter_name"><p>value</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>
|
1562
|
-
<td class="parameter_annotations"> </td>
|
1563
|
-
</tr>
|
1564
|
-
</tbody>
|
1565
|
-
</table></div>
|
1566
|
-
</div>
|
1567
|
-
</div>
|
1568
|
-
<hr>
|
1569
|
-
<div class="refsect2">
|
1570
|
-
<a name="json-node-get-value"></a><h3>json_node_get_value ()</h3>
|
1571
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
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>,
|
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>
|
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>
|
1575
|
-
. When done
|
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>
|
1579
|
-
<div class="refsect3">
|
1580
|
-
<a name="json-node-get-value.parameters"></a><h4>Parameters</h4>
|
1581
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1582
|
-
<colgroup>
|
1583
|
-
<col width="150px" class="parameters_name">
|
1584
|
-
<col class="parameters_description">
|
1585
|
-
<col width="200px" class="parameters_annotations">
|
1586
|
-
</colgroup>
|
1587
|
-
<tbody>
|
1588
|
-
<tr>
|
1589
|
-
<td class="parameter_name"><p>node</p></td>
|
1590
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
1591
|
-
<td class="parameter_annotations"> </td>
|
1592
|
-
</tr>
|
1593
|
-
<tr>
|
1594
|
-
<td class="parameter_name"><p>value</p></td>
|
1595
|
-
<td class="parameter_description"><p> return location for an uninitialized value. </p></td>
|
1596
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Out parameter, where caller must allocate storage."><span class="acronym">out caller-allocates</span></acronym>]</span></td>
|
1597
|
-
</tr>
|
1598
|
-
</tbody>
|
1599
|
-
</table></div>
|
1600
|
-
</div>
|
1601
|
-
</div>
|
1602
|
-
<hr>
|
1603
|
-
<div class="refsect2">
|
1604
|
-
<a name="json-node-set-boolean"></a><h3>json_node_set_boolean ()</h3>
|
1605
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
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>,
|
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>
|
1608
|
-
<p>Sets <em class="parameter"><code>value</code></em>
|
1609
|
-
as the boolean content of the <em class="parameter"><code>node</code></em>
|
1610
|
-
, replacing any existing
|
1611
|
-
content.</p>
|
1612
|
-
<p>It is an error to call this on an immutable node.</p>
|
1613
|
-
<div class="refsect3">
|
1614
|
-
<a name="json-node-set-boolean.parameters"></a><h4>Parameters</h4>
|
1615
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1616
|
-
<colgroup>
|
1617
|
-
<col width="150px" class="parameters_name">
|
1618
|
-
<col class="parameters_description">
|
1619
|
-
<col width="200px" class="parameters_annotations">
|
1620
|
-
</colgroup>
|
1621
|
-
<tbody>
|
1622
|
-
<tr>
|
1623
|
-
<td class="parameter_name"><p>node</p></td>
|
1624
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> of type <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-VALUE:CAPS"><code class="literal">JSON_NODE_VALUE</code></a></p></td>
|
1625
|
-
<td class="parameter_annotations"> </td>
|
1626
|
-
</tr>
|
1627
|
-
<tr>
|
1628
|
-
<td class="parameter_name"><p>value</p></td>
|
1629
|
-
<td class="parameter_description"><p>a boolean value</p></td>
|
1630
|
-
<td class="parameter_annotations"> </td>
|
1631
|
-
</tr>
|
1632
|
-
</tbody>
|
1633
|
-
</table></div>
|
1634
|
-
</div>
|
1635
|
-
</div>
|
1636
|
-
<hr>
|
1637
|
-
<div class="refsect2">
|
1638
|
-
<a name="json-node-get-boolean"></a><h3>json_node_get_boolean ()</h3>
|
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>
|
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>
|
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>
|
1645
|
-
<div class="refsect3">
|
1646
|
-
<a name="json-node-get-boolean.parameters"></a><h4>Parameters</h4>
|
1647
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1648
|
-
<colgroup>
|
1649
|
-
<col width="150px" class="parameters_name">
|
1650
|
-
<col class="parameters_description">
|
1651
|
-
<col width="200px" class="parameters_annotations">
|
1652
|
-
</colgroup>
|
1653
|
-
<tbody><tr>
|
1654
|
-
<td class="parameter_name"><p>node</p></td>
|
1655
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> of type <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-VALUE:CAPS"><code class="literal">JSON_NODE_VALUE</code></a></p></td>
|
1656
|
-
<td class="parameter_annotations"> </td>
|
1657
|
-
</tr></tbody>
|
1658
|
-
</table></div>
|
1659
|
-
</div>
|
1660
|
-
<div class="refsect3">
|
1661
|
-
<a name="json-node-get-boolean.returns"></a><h4>Returns</h4>
|
1662
|
-
<p> a boolean value.</p>
|
1663
|
-
</div>
|
1664
|
-
</div>
|
1665
|
-
<hr>
|
1666
|
-
<div class="refsect2">
|
1667
|
-
<a name="json-node-set-double"></a><h3>json_node_set_double ()</h3>
|
1668
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
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>,
|
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>
|
1671
|
-
<p>Sets <em class="parameter"><code>value</code></em>
|
1672
|
-
as the double content of the <em class="parameter"><code>node</code></em>
|
1673
|
-
, replacing any existing
|
1674
|
-
content.</p>
|
1675
|
-
<p>It is an error to call this on an immutable node.</p>
|
1676
|
-
<div class="refsect3">
|
1677
|
-
<a name="json-node-set-double.parameters"></a><h4>Parameters</h4>
|
1678
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1679
|
-
<colgroup>
|
1680
|
-
<col width="150px" class="parameters_name">
|
1681
|
-
<col class="parameters_description">
|
1682
|
-
<col width="200px" class="parameters_annotations">
|
1683
|
-
</colgroup>
|
1684
|
-
<tbody>
|
1685
|
-
<tr>
|
1686
|
-
<td class="parameter_name"><p>node</p></td>
|
1687
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> of type <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-VALUE:CAPS"><code class="literal">JSON_NODE_VALUE</code></a></p></td>
|
1688
|
-
<td class="parameter_annotations"> </td>
|
1689
|
-
</tr>
|
1690
|
-
<tr>
|
1691
|
-
<td class="parameter_name"><p>value</p></td>
|
1692
|
-
<td class="parameter_description"><p>a double value</p></td>
|
1693
|
-
<td class="parameter_annotations"> </td>
|
1694
|
-
</tr>
|
1695
|
-
</tbody>
|
1696
|
-
</table></div>
|
1697
|
-
</div>
|
1698
|
-
</div>
|
1699
|
-
<hr>
|
1700
|
-
<div class="refsect2">
|
1701
|
-
<a name="json-node-get-double"></a><h3>json_node_get_double ()</h3>
|
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>
|
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>
|
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>
|
1709
|
-
<div class="refsect3">
|
1710
|
-
<a name="json-node-get-double.parameters"></a><h4>Parameters</h4>
|
1711
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1712
|
-
<colgroup>
|
1713
|
-
<col width="150px" class="parameters_name">
|
1714
|
-
<col class="parameters_description">
|
1715
|
-
<col width="200px" class="parameters_annotations">
|
1716
|
-
</colgroup>
|
1717
|
-
<tbody><tr>
|
1718
|
-
<td class="parameter_name"><p>node</p></td>
|
1719
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> of type <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-VALUE:CAPS"><code class="literal">JSON_NODE_VALUE</code></a></p></td>
|
1720
|
-
<td class="parameter_annotations"> </td>
|
1721
|
-
</tr></tbody>
|
1722
|
-
</table></div>
|
1723
|
-
</div>
|
1724
|
-
<div class="refsect3">
|
1725
|
-
<a name="json-node-get-double.returns"></a><h4>Returns</h4>
|
1726
|
-
<p> a double value.</p>
|
1727
|
-
</div>
|
1728
|
-
</div>
|
1729
|
-
<hr>
|
1730
|
-
<div class="refsect2">
|
1731
|
-
<a name="json-node-set-int"></a><h3>json_node_set_int ()</h3>
|
1732
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
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>,
|
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>
|
1735
|
-
<p>Sets <em class="parameter"><code>value</code></em>
|
1736
|
-
as the integer content of the <em class="parameter"><code>node</code></em>
|
1737
|
-
, replacing any existing
|
1738
|
-
content.</p>
|
1739
|
-
<p>It is an error to call this on an immutable node.</p>
|
1740
|
-
<div class="refsect3">
|
1741
|
-
<a name="json-node-set-int.parameters"></a><h4>Parameters</h4>
|
1742
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1743
|
-
<colgroup>
|
1744
|
-
<col width="150px" class="parameters_name">
|
1745
|
-
<col class="parameters_description">
|
1746
|
-
<col width="200px" class="parameters_annotations">
|
1747
|
-
</colgroup>
|
1748
|
-
<tbody>
|
1749
|
-
<tr>
|
1750
|
-
<td class="parameter_name"><p>node</p></td>
|
1751
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> of type <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-VALUE:CAPS"><code class="literal">JSON_NODE_VALUE</code></a></p></td>
|
1752
|
-
<td class="parameter_annotations"> </td>
|
1753
|
-
</tr>
|
1754
|
-
<tr>
|
1755
|
-
<td class="parameter_name"><p>value</p></td>
|
1756
|
-
<td class="parameter_description"><p>an integer value</p></td>
|
1757
|
-
<td class="parameter_annotations"> </td>
|
1758
|
-
</tr>
|
1759
|
-
</tbody>
|
1760
|
-
</table></div>
|
1761
|
-
</div>
|
1762
|
-
</div>
|
1763
|
-
<hr>
|
1764
|
-
<div class="refsect2">
|
1765
|
-
<a name="json-node-get-int"></a><h3>json_node_get_int ()</h3>
|
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>
|
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>
|
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>
|
1773
|
-
<div class="refsect3">
|
1774
|
-
<a name="json-node-get-int.parameters"></a><h4>Parameters</h4>
|
1775
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1776
|
-
<colgroup>
|
1777
|
-
<col width="150px" class="parameters_name">
|
1778
|
-
<col class="parameters_description">
|
1779
|
-
<col width="200px" class="parameters_annotations">
|
1780
|
-
</colgroup>
|
1781
|
-
<tbody><tr>
|
1782
|
-
<td class="parameter_name"><p>node</p></td>
|
1783
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> of type <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-VALUE:CAPS"><code class="literal">JSON_NODE_VALUE</code></a></p></td>
|
1784
|
-
<td class="parameter_annotations"> </td>
|
1785
|
-
</tr></tbody>
|
1786
|
-
</table></div>
|
1787
|
-
</div>
|
1788
|
-
<div class="refsect3">
|
1789
|
-
<a name="json-node-get-int.returns"></a><h4>Returns</h4>
|
1790
|
-
<p> an integer value.</p>
|
1791
|
-
</div>
|
1792
|
-
</div>
|
1793
|
-
<hr>
|
1794
|
-
<div class="refsect2">
|
1795
|
-
<a name="json-node-set-string"></a><h3>json_node_set_string ()</h3>
|
1796
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
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>,
|
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>
|
1799
|
-
<p>Sets <em class="parameter"><code>value</code></em>
|
1800
|
-
as the string content of the <em class="parameter"><code>node</code></em>
|
1801
|
-
, replacing any existing
|
1802
|
-
content.</p>
|
1803
|
-
<p>It is an error to call this on an immutable node.</p>
|
1804
|
-
<div class="refsect3">
|
1805
|
-
<a name="json-node-set-string.parameters"></a><h4>Parameters</h4>
|
1806
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1807
|
-
<colgroup>
|
1808
|
-
<col width="150px" class="parameters_name">
|
1809
|
-
<col class="parameters_description">
|
1810
|
-
<col width="200px" class="parameters_annotations">
|
1811
|
-
</colgroup>
|
1812
|
-
<tbody>
|
1813
|
-
<tr>
|
1814
|
-
<td class="parameter_name"><p>node</p></td>
|
1815
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> initialized to <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-VALUE:CAPS"><code class="literal">JSON_NODE_VALUE</code></a></p></td>
|
1816
|
-
<td class="parameter_annotations"> </td>
|
1817
|
-
</tr>
|
1818
|
-
<tr>
|
1819
|
-
<td class="parameter_name"><p>value</p></td>
|
1820
|
-
<td class="parameter_description"><p>a string value</p></td>
|
1821
|
-
<td class="parameter_annotations"> </td>
|
1822
|
-
</tr>
|
1823
|
-
</tbody>
|
1824
|
-
</table></div>
|
1825
|
-
</div>
|
1826
|
-
</div>
|
1827
|
-
<hr>
|
1828
|
-
<div class="refsect2">
|
1829
|
-
<a name="json-node-get-string"></a><h3>json_node_get_string ()</h3>
|
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> *
|
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>
|
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>
|
1834
|
-
<div class="refsect3">
|
1835
|
-
<a name="json-node-get-string.parameters"></a><h4>Parameters</h4>
|
1836
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1837
|
-
<colgroup>
|
1838
|
-
<col width="150px" class="parameters_name">
|
1839
|
-
<col class="parameters_description">
|
1840
|
-
<col width="200px" class="parameters_annotations">
|
1841
|
-
</colgroup>
|
1842
|
-
<tbody><tr>
|
1843
|
-
<td class="parameter_name"><p>node</p></td>
|
1844
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> of type <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-VALUE:CAPS"><code class="literal">JSON_NODE_VALUE</code></a></p></td>
|
1845
|
-
<td class="parameter_annotations"> </td>
|
1846
|
-
</tr></tbody>
|
1847
|
-
</table></div>
|
1848
|
-
</div>
|
1849
|
-
<div class="refsect3">
|
1850
|
-
<a name="json-node-get-string.returns"></a><h4>Returns</h4>
|
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>
|
1853
|
-
</div>
|
1854
|
-
</div>
|
1855
|
-
<hr>
|
1856
|
-
<div class="refsect2">
|
1857
|
-
<a name="json-node-dup-string"></a><h3>json_node_dup_string ()</h3>
|
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> *
|
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>
|
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>
|
1862
|
-
<div class="refsect3">
|
1863
|
-
<a name="json-node-dup-string.parameters"></a><h4>Parameters</h4>
|
1864
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1865
|
-
<colgroup>
|
1866
|
-
<col width="150px" class="parameters_name">
|
1867
|
-
<col class="parameters_description">
|
1868
|
-
<col width="200px" class="parameters_annotations">
|
1869
|
-
</colgroup>
|
1870
|
-
<tbody><tr>
|
1871
|
-
<td class="parameter_name"><p>node</p></td>
|
1872
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> of type <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-VALUE:CAPS"><code class="literal">JSON_NODE_VALUE</code></a></p></td>
|
1873
|
-
<td class="parameter_annotations"> </td>
|
1874
|
-
</tr></tbody>
|
1875
|
-
</table></div>
|
1876
|
-
</div>
|
1877
|
-
<div class="refsect3">
|
1878
|
-
<a name="json-node-dup-string.returns"></a><h4>Returns</h4>
|
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>
|
1883
|
-
</div>
|
1884
|
-
</div>
|
1885
|
-
<hr>
|
1886
|
-
<div class="refsect2">
|
1887
|
-
<a name="json-node-set-parent"></a><h3>json_node_set_parent ()</h3>
|
1888
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1889
|
-
json_node_set_parent (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>,
|
1890
|
-
<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *parent</code></em>);</pre>
|
1891
|
-
<p>Sets the parent <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> of <em class="parameter"><code>node</code></em>
|
1892
|
-
.</p>
|
1893
|
-
<p>It is an error to call this with an immutable <em class="parameter"><code>parent</code></em>
|
1894
|
-
. <em class="parameter"><code>node</code></em>
|
1895
|
-
may be
|
1896
|
-
immutable.</p>
|
1897
|
-
<div class="refsect3">
|
1898
|
-
<a name="json-node-set-parent.parameters"></a><h4>Parameters</h4>
|
1899
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1900
|
-
<colgroup>
|
1901
|
-
<col width="150px" class="parameters_name">
|
1902
|
-
<col class="parameters_description">
|
1903
|
-
<col width="200px" class="parameters_annotations">
|
1904
|
-
</colgroup>
|
1905
|
-
<tbody>
|
1906
|
-
<tr>
|
1907
|
-
<td class="parameter_name"><p>node</p></td>
|
1908
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
1909
|
-
<td class="parameter_annotations"> </td>
|
1910
|
-
</tr>
|
1911
|
-
<tr>
|
1912
|
-
<td class="parameter_name"><p>parent</p></td>
|
1913
|
-
<td class="parameter_description"><p> the parent <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> of <em class="parameter"><code>node</code></em>
|
1914
|
-
. </p></td>
|
1915
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
|
1916
|
-
</tr>
|
1917
|
-
</tbody>
|
1918
|
-
</table></div>
|
1919
|
-
</div>
|
1920
|
-
<p class="since">Since: <a class="link" href="ix05.html#api-index-0.8">0.8</a></p>
|
1921
|
-
</div>
|
1922
|
-
<hr>
|
1923
|
-
<div class="refsect2">
|
1924
|
-
<a name="json-node-get-parent"></a><h3>json_node_get_parent ()</h3>
|
1925
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
1926
|
-
json_node_get_parent (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
|
1927
|
-
<p>Retrieves the parent <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> of <em class="parameter"><code>node</code></em>
|
1928
|
-
.</p>
|
1929
|
-
<div class="refsect3">
|
1930
|
-
<a name="json-node-get-parent.parameters"></a><h4>Parameters</h4>
|
1931
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1932
|
-
<colgroup>
|
1933
|
-
<col width="150px" class="parameters_name">
|
1934
|
-
<col class="parameters_description">
|
1935
|
-
<col width="200px" class="parameters_annotations">
|
1936
|
-
</colgroup>
|
1937
|
-
<tbody><tr>
|
1938
|
-
<td class="parameter_name"><p>node</p></td>
|
1939
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
1940
|
-
<td class="parameter_annotations"> </td>
|
1941
|
-
</tr></tbody>
|
1942
|
-
</table></div>
|
1943
|
-
</div>
|
1944
|
-
<div class="refsect3">
|
1945
|
-
<a name="json-node-get-parent.returns"></a><h4>Returns</h4>
|
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>
|
1949
|
-
</div>
|
1950
|
-
</div>
|
1951
|
-
<hr>
|
1952
|
-
<div class="refsect2">
|
1953
|
-
<a name="json-node-type-name"></a><h3>json_node_type_name ()</h3>
|
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> *
|
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>
|
1956
|
-
<p>Retrieves the user readable name of the data type contained by <em class="parameter"><code>node</code></em>
|
1957
|
-
.</p>
|
1958
|
-
<div class="refsect3">
|
1959
|
-
<a name="json-node-type-name.parameters"></a><h4>Parameters</h4>
|
1960
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1961
|
-
<colgroup>
|
1962
|
-
<col width="150px" class="parameters_name">
|
1963
|
-
<col class="parameters_description">
|
1964
|
-
<col width="200px" class="parameters_annotations">
|
1965
|
-
</colgroup>
|
1966
|
-
<tbody><tr>
|
1967
|
-
<td class="parameter_name"><p>node</p></td>
|
1968
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
1969
|
-
<td class="parameter_annotations"> </td>
|
1970
|
-
</tr></tbody>
|
1971
|
-
</table></div>
|
1972
|
-
</div>
|
1973
|
-
<div class="refsect3">
|
1974
|
-
<a name="json-node-type-name.returns"></a><h4>Returns</h4>
|
1975
|
-
<p> a string containing the name of the type. The returned string
|
1976
|
-
is owned by the node and should never be modified or freed</p>
|
1977
|
-
</div>
|
1978
|
-
</div>
|
1979
|
-
<hr>
|
1980
|
-
<div class="refsect2">
|
1981
|
-
<a name="json-node-get-value-type"></a><h3>json_node_get_value_type ()</h3>
|
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>
|
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>
|
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>
|
1985
|
-
<div class="refsect3">
|
1986
|
-
<a name="json-node-get-value-type.parameters"></a><h4>Parameters</h4>
|
1987
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1988
|
-
<colgroup>
|
1989
|
-
<col width="150px" class="parameters_name">
|
1990
|
-
<col class="parameters_description">
|
1991
|
-
<col width="200px" class="parameters_annotations">
|
1992
|
-
</colgroup>
|
1993
|
-
<tbody><tr>
|
1994
|
-
<td class="parameter_name"><p>node</p></td>
|
1995
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
1996
|
-
<td class="parameter_annotations"> </td>
|
1997
|
-
</tr></tbody>
|
1998
|
-
</table></div>
|
1999
|
-
</div>
|
2000
|
-
<div class="refsect3">
|
2001
|
-
<a name="json-node-get-value-type.returns"></a><h4>Returns</h4>
|
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>
|
2003
|
-
</div>
|
2004
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-0.4">0.4</a></p>
|
2005
|
-
</div>
|
2006
|
-
<hr>
|
2007
|
-
<div class="refsect2">
|
2008
|
-
<a name="json-node-get-node-type"></a><h3>json_node_get_node_type ()</h3>
|
2009
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNodeType" title="enum JsonNodeType"><span class="returnvalue">JsonNodeType</span></a>
|
2010
|
-
json_node_get_node_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>
|
2011
|
-
<p>Retrieves the <a class="link" href="json-glib-JSON-Node.html#JsonNodeType" title="enum JsonNodeType"><span class="type">JsonNodeType</span></a> of <em class="parameter"><code>node</code></em>
|
2012
|
-
</p>
|
2013
|
-
<div class="refsect3">
|
2014
|
-
<a name="json-node-get-node-type.parameters"></a><h4>Parameters</h4>
|
2015
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2016
|
-
<colgroup>
|
2017
|
-
<col width="150px" class="parameters_name">
|
2018
|
-
<col class="parameters_description">
|
2019
|
-
<col width="200px" class="parameters_annotations">
|
2020
|
-
</colgroup>
|
2021
|
-
<tbody><tr>
|
2022
|
-
<td class="parameter_name"><p>node</p></td>
|
2023
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
2024
|
-
<td class="parameter_annotations"> </td>
|
2025
|
-
</tr></tbody>
|
2026
|
-
</table></div>
|
2027
|
-
</div>
|
2028
|
-
<div class="refsect3">
|
2029
|
-
<a name="json-node-get-node-type.returns"></a><h4>Returns</h4>
|
2030
|
-
<p> the type of the node</p>
|
2031
|
-
</div>
|
2032
|
-
<p class="since">Since: <a class="link" href="ix05.html#api-index-0.8">0.8</a></p>
|
2033
|
-
</div>
|
2034
|
-
<hr>
|
2035
|
-
<div class="refsect2">
|
2036
|
-
<a name="json-node-is-null"></a><h3>json_node_is_null ()</h3>
|
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>
|
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>
|
2039
|
-
<p>Checks whether <em class="parameter"><code>node</code></em>
|
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>
|
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
|
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>
|
2043
|
-
<div class="refsect3">
|
2044
|
-
<a name="json-node-is-null.parameters"></a><h4>Parameters</h4>
|
2045
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2046
|
-
<colgroup>
|
2047
|
-
<col width="150px" class="parameters_name">
|
2048
|
-
<col class="parameters_description">
|
2049
|
-
<col width="200px" class="parameters_annotations">
|
2050
|
-
</colgroup>
|
2051
|
-
<tbody><tr>
|
2052
|
-
<td class="parameter_name"><p>node</p></td>
|
2053
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a></p></td>
|
2054
|
-
<td class="parameter_annotations"> </td>
|
2055
|
-
</tr></tbody>
|
2056
|
-
</table></div>
|
2057
|
-
</div>
|
2058
|
-
<div class="refsect3">
|
2059
|
-
<a name="json-node-is-null.returns"></a><h4>Returns</h4>
|
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>
|
2061
|
-
</div>
|
2062
|
-
<p class="since">Since: <a class="link" href="ix05.html#api-index-0.8">0.8</a></p>
|
2063
|
-
</div>
|
2064
|
-
<hr>
|
2065
|
-
<div class="refsect2">
|
2066
|
-
<a name="json-string-hash"></a><h3>json_string_hash ()</h3>
|
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>
|
2069
|
-
<p>Calculate a hash value for the given <em class="parameter"><code>key</code></em>
|
2070
|
-
(a UTF-8 JSON string).</p>
|
2071
|
-
<p>Note: Member names are compared byte-wise, without applying any Unicode
|
2072
|
-
decomposition or normalisation. This is not explicitly mentioned in the JSON
|
2073
|
-
standard (ECMA-404), but is assumed.</p>
|
2074
|
-
<div class="refsect3">
|
2075
|
-
<a name="json-string-hash.parameters"></a><h4>Parameters</h4>
|
2076
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2077
|
-
<colgroup>
|
2078
|
-
<col width="150px" class="parameters_name">
|
2079
|
-
<col class="parameters_description">
|
2080
|
-
<col width="200px" class="parameters_annotations">
|
2081
|
-
</colgroup>
|
2082
|
-
<tbody><tr>
|
2083
|
-
<td class="parameter_name"><p>key</p></td>
|
2084
|
-
<td class="parameter_description"><p> a JSON string to hash. </p></td>
|
2085
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> utf8]</span></td>
|
2086
|
-
</tr></tbody>
|
2087
|
-
</table></div>
|
2088
|
-
</div>
|
2089
|
-
<div class="refsect3">
|
2090
|
-
<a name="json-string-hash.returns"></a><h4>Returns</h4>
|
2091
|
-
<p> hash value for <em class="parameter"><code>key</code></em>
|
2092
|
-
</p>
|
2093
|
-
</div>
|
2094
|
-
<p class="since">Since: <a class="link" href="ix11.html#api-index-1.2">1.2</a></p>
|
2095
|
-
</div>
|
2096
|
-
<hr>
|
2097
|
-
<div class="refsect2">
|
2098
|
-
<a name="json-string-equal"></a><h3>json_string_equal ()</h3>
|
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>
|
2102
|
-
<p>Check whether <em class="parameter"><code>a</code></em>
|
2103
|
-
and <em class="parameter"><code>b</code></em>
|
2104
|
-
are equal UTF-8 JSON strings.</p>
|
2105
|
-
<div class="refsect3">
|
2106
|
-
<a name="json-string-equal.parameters"></a><h4>Parameters</h4>
|
2107
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2108
|
-
<colgroup>
|
2109
|
-
<col width="150px" class="parameters_name">
|
2110
|
-
<col class="parameters_description">
|
2111
|
-
<col width="200px" class="parameters_annotations">
|
2112
|
-
</colgroup>
|
2113
|
-
<tbody>
|
2114
|
-
<tr>
|
2115
|
-
<td class="parameter_name"><p>a</p></td>
|
2116
|
-
<td class="parameter_description"><p> a JSON string. </p></td>
|
2117
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> utf8]</span></td>
|
2118
|
-
</tr>
|
2119
|
-
<tr>
|
2120
|
-
<td class="parameter_name"><p>b</p></td>
|
2121
|
-
<td class="parameter_description"><p> another JSON string. </p></td>
|
2122
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> utf8]</span></td>
|
2123
|
-
</tr>
|
2124
|
-
</tbody>
|
2125
|
-
</table></div>
|
2126
|
-
</div>
|
2127
|
-
<div class="refsect3">
|
2128
|
-
<a name="json-string-equal.returns"></a><h4>Returns</h4>
|
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>
|
2130
|
-
and <em class="parameter"><code>b</code></em>
|
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>
|
2132
|
-
</div>
|
2133
|
-
<p class="since">Since: <a class="link" href="ix11.html#api-index-1.2">1.2</a></p>
|
2134
|
-
</div>
|
2135
|
-
<hr>
|
2136
|
-
<div class="refsect2">
|
2137
|
-
<a name="json-string-compare"></a><h3>json_string_compare ()</h3>
|
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>
|
2141
|
-
<p>Check whether <em class="parameter"><code>a</code></em>
|
2142
|
-
and <em class="parameter"><code>b</code></em>
|
2143
|
-
are equal UTF-8 JSON strings and return an ordering
|
2144
|
-
over them in <code class="function">strcmp()</code> style.</p>
|
2145
|
-
<div class="refsect3">
|
2146
|
-
<a name="json-string-compare.parameters"></a><h4>Parameters</h4>
|
2147
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2148
|
-
<colgroup>
|
2149
|
-
<col width="150px" class="parameters_name">
|
2150
|
-
<col class="parameters_description">
|
2151
|
-
<col width="200px" class="parameters_annotations">
|
2152
|
-
</colgroup>
|
2153
|
-
<tbody>
|
2154
|
-
<tr>
|
2155
|
-
<td class="parameter_name"><p>a</p></td>
|
2156
|
-
<td class="parameter_description"><p> a JSON string. </p></td>
|
2157
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> utf8]</span></td>
|
2158
|
-
</tr>
|
2159
|
-
<tr>
|
2160
|
-
<td class="parameter_name"><p>b</p></td>
|
2161
|
-
<td class="parameter_description"><p> another JSON string. </p></td>
|
2162
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> utf8]</span></td>
|
2163
|
-
</tr>
|
2164
|
-
</tbody>
|
2165
|
-
</table></div>
|
2166
|
-
</div>
|
2167
|
-
<div class="refsect3">
|
2168
|
-
<a name="json-string-compare.returns"></a><h4>Returns</h4>
|
2169
|
-
<p> an integer less than zero if <em class="parameter"><code>a</code></em>
|
2170
|
-
< <em class="parameter"><code>b</code></em>
|
2171
|
-
, equal to zero if <em class="parameter"><code>a</code></em>
|
2172
|
-
== <em class="parameter"><code>b</code></em>
|
2173
|
-
, and
|
2174
|
-
greater than zero if <em class="parameter"><code>a</code></em>
|
2175
|
-
> <em class="parameter"><code>b</code></em>
|
2176
|
-
</p>
|
2177
|
-
</div>
|
2178
|
-
<p class="since">Since: <a class="link" href="ix11.html#api-index-1.2">1.2</a></p>
|
2179
|
-
</div>
|
2180
|
-
</div>
|
2181
|
-
<div class="refsect1">
|
2182
|
-
<a name="json-glib-JSON-Node.other_details"></a><h2>Types and Values</h2>
|
2183
|
-
<div class="refsect2">
|
2184
|
-
<a name="JsonNodeType"></a><h3>enum JsonNodeType</h3>
|
2185
|
-
<p>Indicates the content of a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>.</p>
|
2186
|
-
<div class="refsect3">
|
2187
|
-
<a name="JsonNodeType.members"></a><h4>Members</h4>
|
2188
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2189
|
-
<colgroup>
|
2190
|
-
<col width="300px" class="enum_members_name">
|
2191
|
-
<col class="enum_members_description">
|
2192
|
-
<col width="200px" class="enum_members_annotations">
|
2193
|
-
</colgroup>
|
2194
|
-
<tbody>
|
2195
|
-
<tr>
|
2196
|
-
<td class="enum_member_name"><p><a name="JSON-NODE-OBJECT:CAPS"></a>JSON_NODE_OBJECT</p></td>
|
2197
|
-
<td class="enum_member_description">
|
2198
|
-
<p>The node contains a <a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="type">JsonObject</span></a></p>
|
2199
|
-
</td>
|
2200
|
-
<td class="enum_member_annotations"> </td>
|
2201
|
-
</tr>
|
2202
|
-
<tr>
|
2203
|
-
<td class="enum_member_name"><p><a name="JSON-NODE-ARRAY:CAPS"></a>JSON_NODE_ARRAY</p></td>
|
2204
|
-
<td class="enum_member_description">
|
2205
|
-
<p>The node contains a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p>
|
2206
|
-
</td>
|
2207
|
-
<td class="enum_member_annotations"> </td>
|
2208
|
-
</tr>
|
2209
|
-
<tr>
|
2210
|
-
<td class="enum_member_name"><p><a name="JSON-NODE-VALUE:CAPS"></a>JSON_NODE_VALUE</p></td>
|
2211
|
-
<td class="enum_member_description">
|
2212
|
-
<p>The node contains a fundamental type</p>
|
2213
|
-
</td>
|
2214
|
-
<td class="enum_member_annotations"> </td>
|
2215
|
-
</tr>
|
2216
|
-
<tr>
|
2217
|
-
<td class="enum_member_name"><p><a name="JSON-NODE-NULL:CAPS"></a>JSON_NODE_NULL</p></td>
|
2218
|
-
<td class="enum_member_description">
|
2219
|
-
<p>Special type, for nodes containing null</p>
|
2220
|
-
</td>
|
2221
|
-
<td class="enum_member_annotations"> </td>
|
2222
|
-
</tr>
|
2223
|
-
</tbody>
|
2224
|
-
</table></div>
|
2225
|
-
</div>
|
2226
|
-
</div>
|
2227
|
-
<hr>
|
2228
|
-
<div class="refsect2">
|
2229
|
-
<a name="JsonNode-struct"></a><h3>JsonNode</h3>
|
2230
|
-
<pre class="programlisting">typedef struct _JsonNode JsonNode;</pre>
|
2231
|
-
<p>A generic container of JSON data types. The contents of the <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>
|
2232
|
-
structure are private and should only be accessed via the provided
|
2233
|
-
functions and never directly.</p>
|
2234
|
-
</div>
|
2235
|
-
</div>
|
2236
|
-
</div>
|
2237
|
-
<div class="footer">
|
2238
|
-
<hr>Generated by GTK-Doc V1.25</div>
|
2239
|
-
</body>
|
2240
|
-
</html>
|