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,387 +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>GObject Serialization: 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-advanced.html" title="Part IV. JSON-GLib Advanced API">
|
10
|
-
<link rel="next" href="json-glib-Serializable-Interface.html" title="Serializable Interface">
|
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-GObject-Serialization.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-advanced.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
23
|
-
<td><a accesskey="n" href="json-glib-Serializable-Interface.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-GObject-Serialization"></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-GObject-Serialization.top_of_page"></a>GObject Serialization</span></h2>
|
30
|
-
<p>GObject Serialization — Serialize and deserialize GObjects</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-GObject-Serialization.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-GObject-Serialization.html#json-gobject-serialize" title="json_gobject_serialize ()">json_gobject_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/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="returnvalue">GObject</span></a> *
|
53
|
-
</td>
|
54
|
-
<td class="function_name">
|
55
|
-
<a class="link" href="json-glib-GObject-Serialization.html#json-gobject-deserialize" title="json_gobject_deserialize ()">json_gobject_deserialize</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-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
|
61
|
-
</td>
|
62
|
-
<td class="function_name">
|
63
|
-
<a class="link" href="json-glib-GObject-Serialization.html#json-gobject-to-data" title="json_gobject_to_data ()">json_gobject_to_data</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/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="returnvalue">GObject</span></a> *
|
69
|
-
</td>
|
70
|
-
<td class="function_name">
|
71
|
-
<a class="link" href="json-glib-GObject-Serialization.html#json-gobject-from-data" title="json_gobject_from_data ()">json_gobject_from_data</a> <span class="c_punctuation">()</span>
|
72
|
-
</td>
|
73
|
-
</tr>
|
74
|
-
<tr>
|
75
|
-
<td class="function_type">
|
76
|
-
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="returnvalue">GObject</span></a> *
|
77
|
-
</td>
|
78
|
-
<td class="function_name">
|
79
|
-
<a class="link" href="json-glib-GObject-Serialization.html#json-construct-gobject" title="json_construct_gobject ()">json_construct_gobject</a> <span class="c_punctuation">()</span>
|
80
|
-
</td>
|
81
|
-
</tr>
|
82
|
-
<tr>
|
83
|
-
<td class="function_type">
|
84
|
-
<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> *
|
85
|
-
</td>
|
86
|
-
<td class="function_name">
|
87
|
-
<a class="link" href="json-glib-GObject-Serialization.html#json-serialize-gobject" title="json_serialize_gobject ()">json_serialize_gobject</a> <span class="c_punctuation">()</span>
|
88
|
-
</td>
|
89
|
-
</tr>
|
90
|
-
</tbody>
|
91
|
-
</table></div>
|
92
|
-
</div>
|
93
|
-
<div class="refsect1">
|
94
|
-
<a name="json-glib-GObject-Serialization.includes"></a><h2>Includes</h2>
|
95
|
-
<pre class="synopsis">#include <json-glib/json-glib.h>
|
96
|
-
</pre>
|
97
|
-
</div>
|
98
|
-
<div class="refsect1">
|
99
|
-
<a name="json-glib-GObject-Serialization.description"></a><h2>Description</h2>
|
100
|
-
<p>JSON-GLib provides API for serializing and deserializing <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a>
|
101
|
-
instances to and from JSON data streams.</p>
|
102
|
-
<p>Simple <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> classes can be (de)serialized into JSON objects, if the
|
103
|
-
properties have compatible types with the native JSON types (integers,
|
104
|
-
booleans, strings, string vectors). If the class to be (de)serialized has
|
105
|
-
complex data types for properties (like boxed types or other objects)
|
106
|
-
then the class should implement the provided <a class="link" href="json-glib-Serializable-Interface.html#JsonSerializable"><span class="type">JsonSerializable</span></a> interface
|
107
|
-
and its virtual functions.</p>
|
108
|
-
</div>
|
109
|
-
<div class="refsect1">
|
110
|
-
<a name="json-glib-GObject-Serialization.functions_details"></a><h2>Functions</h2>
|
111
|
-
<div class="refsect2">
|
112
|
-
<a name="json-gobject-serialize"></a><h3>json_gobject_serialize ()</h3>
|
113
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
114
|
-
json_gobject_serialize (<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> *gobject</code></em>);</pre>
|
115
|
-
<p>Creates a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> representing the passed <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a>
|
116
|
-
instance. Each member of the returned JSON object will
|
117
|
-
map to a property of the <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a></p>
|
118
|
-
<div class="refsect3">
|
119
|
-
<a name="json-gobject-serialize.parameters"></a><h4>Parameters</h4>
|
120
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
121
|
-
<colgroup>
|
122
|
-
<col width="150px" class="parameters_name">
|
123
|
-
<col class="parameters_description">
|
124
|
-
<col width="200px" class="parameters_annotations">
|
125
|
-
</colgroup>
|
126
|
-
<tbody><tr>
|
127
|
-
<td class="parameter_name"><p>gobject</p></td>
|
128
|
-
<td class="parameter_description"><p>a <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a></p></td>
|
129
|
-
<td class="parameter_annotations"> </td>
|
130
|
-
</tr></tbody>
|
131
|
-
</table></div>
|
132
|
-
</div>
|
133
|
-
<div class="refsect3">
|
134
|
-
<a name="json-gobject-serialize.returns"></a><h4>Returns</h4>
|
135
|
-
<p> the newly created <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>
|
136
|
-
of type <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-OBJECT:CAPS"><code class="literal">JSON_NODE_OBJECT</code></a>. Use <a class="link" href="json-glib-JSON-Node.html#json-node-unref" title="json_node_unref ()"><code class="function">json_node_unref()</code></a> to free
|
137
|
-
the resources allocated by this function. </p>
|
138
|
-
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
139
|
-
</div>
|
140
|
-
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.10">0.10</a></p>
|
141
|
-
</div>
|
142
|
-
<hr>
|
143
|
-
<div class="refsect2">
|
144
|
-
<a name="json-gobject-deserialize"></a><h3>json_gobject_deserialize ()</h3>
|
145
|
-
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="returnvalue">GObject</span></a> *
|
146
|
-
json_gobject_deserialize (<em class="parameter"><code><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> gtype</code></em>,
|
147
|
-
<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
|
148
|
-
<p>Creates a new <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> of type <em class="parameter"><code>gtype</code></em>
|
149
|
-
, and constructs it
|
150
|
-
using the members of the passed <a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="type">JsonObject</span></a></p>
|
151
|
-
<div class="refsect3">
|
152
|
-
<a name="json-gobject-deserialize.parameters"></a><h4>Parameters</h4>
|
153
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
154
|
-
<colgroup>
|
155
|
-
<col width="150px" class="parameters_name">
|
156
|
-
<col class="parameters_description">
|
157
|
-
<col width="200px" class="parameters_annotations">
|
158
|
-
</colgroup>
|
159
|
-
<tbody>
|
160
|
-
<tr>
|
161
|
-
<td class="parameter_name"><p>gtype</p></td>
|
162
|
-
<td class="parameter_description"><p>the type of the <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> to create</p></td>
|
163
|
-
<td class="parameter_annotations"> </td>
|
164
|
-
</tr>
|
165
|
-
<tr>
|
166
|
-
<td class="parameter_name"><p>node</p></td>
|
167
|
-
<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-OBJECT:CAPS"><code class="literal">JSON_NODE_OBJECT</code></a> describing the
|
168
|
-
instance of type <em class="parameter"><code>gtype</code></em>
|
169
|
-
</p></td>
|
170
|
-
<td class="parameter_annotations"> </td>
|
171
|
-
</tr>
|
172
|
-
</tbody>
|
173
|
-
</table></div>
|
174
|
-
</div>
|
175
|
-
<div class="refsect3">
|
176
|
-
<a name="json-gobject-deserialize.returns"></a><h4>Returns</h4>
|
177
|
-
<p> The newly created <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a>
|
178
|
-
instance. Use <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> to free the resources
|
179
|
-
allocated by this function. </p>
|
180
|
-
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
181
|
-
</div>
|
182
|
-
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.10">0.10</a></p>
|
183
|
-
</div>
|
184
|
-
<hr>
|
185
|
-
<div class="refsect2">
|
186
|
-
<a name="json-gobject-to-data"></a><h3>json_gobject_to_data ()</h3>
|
187
|
-
<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> *
|
188
|
-
json_gobject_to_data (<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> *gobject</code></em>,
|
189
|
-
<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>
|
190
|
-
<p>Serializes a <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> into a JSON data stream, iterating recursively
|
191
|
-
over each property.</p>
|
192
|
-
<p>If <em class="parameter"><code>gobject</code></em>
|
193
|
-
implements the <a class="link" href="json-glib-Serializable-Interface.html#JsonSerializableIface" title="struct JsonSerializableIface"><span class="type">JsonSerializableIface</span></a> interface, it will
|
194
|
-
be asked to serialize all its properties; otherwise, the default
|
195
|
-
implementation will be use to translate the compatible types into
|
196
|
-
JSON native types.</p>
|
197
|
-
<div class="refsect3">
|
198
|
-
<a name="json-gobject-to-data.parameters"></a><h4>Parameters</h4>
|
199
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
200
|
-
<colgroup>
|
201
|
-
<col width="150px" class="parameters_name">
|
202
|
-
<col class="parameters_description">
|
203
|
-
<col width="200px" class="parameters_annotations">
|
204
|
-
</colgroup>
|
205
|
-
<tbody>
|
206
|
-
<tr>
|
207
|
-
<td class="parameter_name"><p>gobject</p></td>
|
208
|
-
<td class="parameter_description"><p>a <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a></p></td>
|
209
|
-
<td class="parameter_annotations"> </td>
|
210
|
-
</tr>
|
211
|
-
<tr>
|
212
|
-
<td class="parameter_name"><p>length</p></td>
|
213
|
-
<td class="parameter_description"><p> return value for the length of the buffer, 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>
|
214
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
|
215
|
-
</tr>
|
216
|
-
</tbody>
|
217
|
-
</table></div>
|
218
|
-
</div>
|
219
|
-
<div class="refsect3">
|
220
|
-
<a name="json-gobject-to-data.returns"></a><h4>Returns</h4>
|
221
|
-
<p> a JSON data stream representing the passed <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a></p>
|
222
|
-
</div>
|
223
|
-
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.10">0.10</a></p>
|
224
|
-
</div>
|
225
|
-
<hr>
|
226
|
-
<div class="refsect2">
|
227
|
-
<a name="json-gobject-from-data"></a><h3>json_gobject_from_data ()</h3>
|
228
|
-
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="returnvalue">GObject</span></a> *
|
229
|
-
json_gobject_from_data (<em class="parameter"><code><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> gtype</code></em>,
|
230
|
-
<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> *data</code></em>,
|
231
|
-
<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>,
|
232
|
-
<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>
|
233
|
-
<p>Deserializes a JSON data stream and creates the corresponding
|
234
|
-
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> class. If <em class="parameter"><code>gtype</code></em>
|
235
|
-
implements the <a class="link" href="json-glib-Serializable-Interface.html#JsonSerializableIface" title="struct JsonSerializableIface"><span class="type">JsonSerializableIface</span></a>
|
236
|
-
interface, it will be asked to deserialize all the JSON members
|
237
|
-
into the respective properties; otherwise, the default implementation
|
238
|
-
will be used to translate the compatible JSON native types.</p>
|
239
|
-
<p>Note: the JSON data stream must be an object declaration.</p>
|
240
|
-
<div class="refsect3">
|
241
|
-
<a name="json-gobject-from-data.parameters"></a><h4>Parameters</h4>
|
242
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
243
|
-
<colgroup>
|
244
|
-
<col width="150px" class="parameters_name">
|
245
|
-
<col class="parameters_description">
|
246
|
-
<col width="200px" class="parameters_annotations">
|
247
|
-
</colgroup>
|
248
|
-
<tbody>
|
249
|
-
<tr>
|
250
|
-
<td class="parameter_name"><p>gtype</p></td>
|
251
|
-
<td class="parameter_description"><p>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 object to construct</p></td>
|
252
|
-
<td class="parameter_annotations"> </td>
|
253
|
-
</tr>
|
254
|
-
<tr>
|
255
|
-
<td class="parameter_name"><p>data</p></td>
|
256
|
-
<td class="parameter_description"><p>a JSON data stream</p></td>
|
257
|
-
<td class="parameter_annotations"> </td>
|
258
|
-
</tr>
|
259
|
-
<tr>
|
260
|
-
<td class="parameter_name"><p>length</p></td>
|
261
|
-
<td class="parameter_description"><p>length of the data stream, or -1 if it is NUL-terminated</p></td>
|
262
|
-
<td class="parameter_annotations"> </td>
|
263
|
-
</tr>
|
264
|
-
<tr>
|
265
|
-
<td class="parameter_name"><p>error</p></td>
|
266
|
-
<td class="parameter_description"><p>return location for 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>, 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>
|
267
|
-
<td class="parameter_annotations"> </td>
|
268
|
-
</tr>
|
269
|
-
</tbody>
|
270
|
-
</table></div>
|
271
|
-
</div>
|
272
|
-
<div class="refsect3">
|
273
|
-
<a name="json-gobject-from-data.returns"></a><h4>Returns</h4>
|
274
|
-
<p> a <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> 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>
|
275
|
-
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
276
|
-
</div>
|
277
|
-
<p class="since">Since: <a class="link" href="ix06.html#api-index-0.10">0.10</a></p>
|
278
|
-
</div>
|
279
|
-
<hr>
|
280
|
-
<div class="refsect2">
|
281
|
-
<a name="json-construct-gobject"></a><h3>json_construct_gobject ()</h3>
|
282
|
-
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="returnvalue">GObject</span></a> *
|
283
|
-
json_construct_gobject (<em class="parameter"><code><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> gtype</code></em>,
|
284
|
-
<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> *data</code></em>,
|
285
|
-
<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>,
|
286
|
-
<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>
|
287
|
-
<div class="warning">
|
288
|
-
<p><code class="literal">json_construct_gobject</code> has been deprecated since version 0.10 and should not be used in newly-written code.</p>
|
289
|
-
<p>Use <a class="link" href="json-glib-GObject-Serialization.html#json-gobject-from-data" title="json_gobject_from_data ()"><code class="function">json_gobject_from_data()</code></a> instead</p>
|
290
|
-
</div>
|
291
|
-
<p>Deserializes a JSON data stream and creates the corresponding
|
292
|
-
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> class. If <em class="parameter"><code>gtype</code></em>
|
293
|
-
implements the <a class="link" href="json-glib-Serializable-Interface.html#JsonSerializableIface" title="struct JsonSerializableIface"><span class="type">JsonSerializableIface</span></a>
|
294
|
-
interface, it will be asked to deserialize all the JSON members
|
295
|
-
into the respective properties; otherwise, the default implementation
|
296
|
-
will be used to translate the compatible JSON native types.</p>
|
297
|
-
<p>Note: the JSON data stream must be an object declaration.</p>
|
298
|
-
<div class="refsect3">
|
299
|
-
<a name="json-construct-gobject.parameters"></a><h4>Parameters</h4>
|
300
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
301
|
-
<colgroup>
|
302
|
-
<col width="150px" class="parameters_name">
|
303
|
-
<col class="parameters_description">
|
304
|
-
<col width="200px" class="parameters_annotations">
|
305
|
-
</colgroup>
|
306
|
-
<tbody>
|
307
|
-
<tr>
|
308
|
-
<td class="parameter_name"><p>gtype</p></td>
|
309
|
-
<td class="parameter_description"><p>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 object to construct</p></td>
|
310
|
-
<td class="parameter_annotations"> </td>
|
311
|
-
</tr>
|
312
|
-
<tr>
|
313
|
-
<td class="parameter_name"><p>data</p></td>
|
314
|
-
<td class="parameter_description"><p>a JSON data stream</p></td>
|
315
|
-
<td class="parameter_annotations"> </td>
|
316
|
-
</tr>
|
317
|
-
<tr>
|
318
|
-
<td class="parameter_name"><p>length</p></td>
|
319
|
-
<td class="parameter_description"><p>length of the data stream</p></td>
|
320
|
-
<td class="parameter_annotations"> </td>
|
321
|
-
</tr>
|
322
|
-
<tr>
|
323
|
-
<td class="parameter_name"><p>error</p></td>
|
324
|
-
<td class="parameter_description"><p>return location for 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>, 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>
|
325
|
-
<td class="parameter_annotations"> </td>
|
326
|
-
</tr>
|
327
|
-
</tbody>
|
328
|
-
</table></div>
|
329
|
-
</div>
|
330
|
-
<div class="refsect3">
|
331
|
-
<a name="json-construct-gobject.returns"></a><h4>Returns</h4>
|
332
|
-
<p> a <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> 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>
|
333
|
-
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
334
|
-
</div>
|
335
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-0.4">0.4</a></p>
|
336
|
-
</div>
|
337
|
-
<hr>
|
338
|
-
<div class="refsect2">
|
339
|
-
<a name="json-serialize-gobject"></a><h3>json_serialize_gobject ()</h3>
|
340
|
-
<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> *
|
341
|
-
json_serialize_gobject (<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> *gobject</code></em>,
|
342
|
-
<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>
|
343
|
-
<div class="warning">
|
344
|
-
<p><code class="literal">json_serialize_gobject</code> has been deprecated since version 0.10 and should not be used in newly-written code.</p>
|
345
|
-
<p>Use <a class="link" href="json-glib-GObject-Serialization.html#json-gobject-to-data" title="json_gobject_to_data ()"><code class="function">json_gobject_to_data()</code></a> instead</p>
|
346
|
-
</div>
|
347
|
-
<p>Serializes a <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> into a JSON data stream. If <em class="parameter"><code>gobject</code></em>
|
348
|
-
implements
|
349
|
-
the <a class="link" href="json-glib-Serializable-Interface.html#JsonSerializableIface" title="struct JsonSerializableIface"><span class="type">JsonSerializableIface</span></a> interface, it will be asked to serizalize all
|
350
|
-
its properties; otherwise, the default implementation will be use to
|
351
|
-
translate the compatible types into JSON native types.</p>
|
352
|
-
<div class="refsect3">
|
353
|
-
<a name="json-serialize-gobject.parameters"></a><h4>Parameters</h4>
|
354
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
355
|
-
<colgroup>
|
356
|
-
<col width="150px" class="parameters_name">
|
357
|
-
<col class="parameters_description">
|
358
|
-
<col width="200px" class="parameters_annotations">
|
359
|
-
</colgroup>
|
360
|
-
<tbody>
|
361
|
-
<tr>
|
362
|
-
<td class="parameter_name"><p>gobject</p></td>
|
363
|
-
<td class="parameter_description"><p>a <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a></p></td>
|
364
|
-
<td class="parameter_annotations"> </td>
|
365
|
-
</tr>
|
366
|
-
<tr>
|
367
|
-
<td class="parameter_name"><p>length</p></td>
|
368
|
-
<td class="parameter_description"><p> return value for the length of the buffer, 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>
|
369
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
|
370
|
-
</tr>
|
371
|
-
</tbody>
|
372
|
-
</table></div>
|
373
|
-
</div>
|
374
|
-
<div class="refsect3">
|
375
|
-
<a name="json-serialize-gobject.returns"></a><h4>Returns</h4>
|
376
|
-
<p> a JSON data stream representing the passed <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a></p>
|
377
|
-
</div>
|
378
|
-
</div>
|
379
|
-
</div>
|
380
|
-
<div class="refsect1">
|
381
|
-
<a name="json-glib-GObject-Serialization.other_details"></a><h2>Types and Values</h2>
|
382
|
-
</div>
|
383
|
-
</div>
|
384
|
-
<div class="footer">
|
385
|
-
<hr>Generated by GTK-Doc V1.25</div>
|
386
|
-
</body>
|
387
|
-
</html>
|
@@ -1,1356 +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 Array: 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="json-glib-JSON-Node.html" title="JSON Node">
|
10
|
-
<link rel="next" href="json-glib-JSON-Object.html" title="JSON Object">
|
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-Array.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
|
19
|
-
<a href="#json-glib-JSON-Array.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="json-glib-JSON-Node.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
24
|
-
<td><a accesskey="n" href="json-glib-JSON-Object.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-Array"></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-Array.top_of_page"></a>JSON Array</span></h2>
|
31
|
-
<p>JSON Array — a JSON array representation</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-Array.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="function_type">
|
45
|
-
<a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="returnvalue">JsonArray</span></a> *
|
46
|
-
</td>
|
47
|
-
<td class="function_name">
|
48
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-new" title="json_array_new ()">json_array_new</a> <span class="c_punctuation">()</span>
|
49
|
-
</td>
|
50
|
-
</tr>
|
51
|
-
<tr>
|
52
|
-
<td class="function_type">
|
53
|
-
<a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="returnvalue">JsonArray</span></a> *
|
54
|
-
</td>
|
55
|
-
<td class="function_name">
|
56
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-sized-new" title="json_array_sized_new ()">json_array_sized_new</a> <span class="c_punctuation">()</span>
|
57
|
-
</td>
|
58
|
-
</tr>
|
59
|
-
<tr>
|
60
|
-
<td class="function_type">
|
61
|
-
<a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="returnvalue">JsonArray</span></a> *
|
62
|
-
</td>
|
63
|
-
<td class="function_name">
|
64
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-ref" title="json_array_ref ()">json_array_ref</a> <span class="c_punctuation">()</span>
|
65
|
-
</td>
|
66
|
-
</tr>
|
67
|
-
<tr>
|
68
|
-
<td class="function_type">
|
69
|
-
<span class="returnvalue">void</span>
|
70
|
-
</td>
|
71
|
-
<td class="function_name">
|
72
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-unref" title="json_array_unref ()">json_array_unref</a> <span class="c_punctuation">()</span>
|
73
|
-
</td>
|
74
|
-
</tr>
|
75
|
-
<tr>
|
76
|
-
<td class="function_type">
|
77
|
-
<span class="returnvalue">void</span>
|
78
|
-
</td>
|
79
|
-
<td class="function_name">
|
80
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-seal" title="json_array_seal ()">json_array_seal</a> <span class="c_punctuation">()</span>
|
81
|
-
</td>
|
82
|
-
</tr>
|
83
|
-
<tr>
|
84
|
-
<td class="function_type">
|
85
|
-
<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>
|
86
|
-
</td>
|
87
|
-
<td class="function_name">
|
88
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-is-immutable" title="json_array_is_immutable ()">json_array_is_immutable</a> <span class="c_punctuation">()</span>
|
89
|
-
</td>
|
90
|
-
</tr>
|
91
|
-
<tr>
|
92
|
-
<td class="function_type">
|
93
|
-
<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>
|
94
|
-
</td>
|
95
|
-
<td class="function_name">
|
96
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-hash" title="json_array_hash ()">json_array_hash</a> <span class="c_punctuation">()</span>
|
97
|
-
</td>
|
98
|
-
</tr>
|
99
|
-
<tr>
|
100
|
-
<td class="function_type">
|
101
|
-
<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>
|
102
|
-
</td>
|
103
|
-
<td class="function_name">
|
104
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-equal" title="json_array_equal ()">json_array_equal</a> <span class="c_punctuation">()</span>
|
105
|
-
</td>
|
106
|
-
</tr>
|
107
|
-
<tr>
|
108
|
-
<td class="function_type">
|
109
|
-
<span class="returnvalue">void</span>
|
110
|
-
</td>
|
111
|
-
<td class="function_name">
|
112
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-add-element" title="json_array_add_element ()">json_array_add_element</a> <span class="c_punctuation">()</span>
|
113
|
-
</td>
|
114
|
-
</tr>
|
115
|
-
<tr>
|
116
|
-
<td class="function_type">
|
117
|
-
<a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
118
|
-
</td>
|
119
|
-
<td class="function_name">
|
120
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-get-element" title="json_array_get_element ()">json_array_get_element</a> <span class="c_punctuation">()</span>
|
121
|
-
</td>
|
122
|
-
</tr>
|
123
|
-
<tr>
|
124
|
-
<td class="function_type">
|
125
|
-
<a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
126
|
-
</td>
|
127
|
-
<td class="function_name">
|
128
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-dup-element" title="json_array_dup_element ()">json_array_dup_element</a> <span class="c_punctuation">()</span>
|
129
|
-
</td>
|
130
|
-
</tr>
|
131
|
-
<tr>
|
132
|
-
<td class="function_type">
|
133
|
-
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
|
134
|
-
</td>
|
135
|
-
<td class="function_name">
|
136
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-get-elements" title="json_array_get_elements ()">json_array_get_elements</a> <span class="c_punctuation">()</span>
|
137
|
-
</td>
|
138
|
-
</tr>
|
139
|
-
<tr>
|
140
|
-
<td class="function_type">
|
141
|
-
<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>
|
142
|
-
</td>
|
143
|
-
<td class="function_name">
|
144
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-get-length" title="json_array_get_length ()">json_array_get_length</a> <span class="c_punctuation">()</span>
|
145
|
-
</td>
|
146
|
-
</tr>
|
147
|
-
<tr>
|
148
|
-
<td class="function_type">
|
149
|
-
<span class="returnvalue">void</span>
|
150
|
-
</td>
|
151
|
-
<td class="function_name">
|
152
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-remove-element" title="json_array_remove_element ()">json_array_remove_element</a> <span class="c_punctuation">()</span>
|
153
|
-
</td>
|
154
|
-
</tr>
|
155
|
-
<tr>
|
156
|
-
<td class="function_type">
|
157
|
-
<span class="returnvalue">void</span>
|
158
|
-
</td>
|
159
|
-
<td class="function_name">
|
160
|
-
<span class="c_punctuation">(</span><a class="link" href="json-glib-JSON-Array.html#JsonArrayForeach" title="JsonArrayForeach ()">*JsonArrayForeach</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
|
161
|
-
</td>
|
162
|
-
</tr>
|
163
|
-
<tr>
|
164
|
-
<td class="function_type">
|
165
|
-
<span class="returnvalue">void</span>
|
166
|
-
</td>
|
167
|
-
<td class="function_name">
|
168
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-foreach-element" title="json_array_foreach_element ()">json_array_foreach_element</a> <span class="c_punctuation">()</span>
|
169
|
-
</td>
|
170
|
-
</tr>
|
171
|
-
<tr>
|
172
|
-
<td class="function_type">
|
173
|
-
<span class="returnvalue">void</span>
|
174
|
-
</td>
|
175
|
-
<td class="function_name">
|
176
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-add-array-element" title="json_array_add_array_element ()">json_array_add_array_element</a> <span class="c_punctuation">()</span>
|
177
|
-
</td>
|
178
|
-
</tr>
|
179
|
-
<tr>
|
180
|
-
<td class="function_type">
|
181
|
-
<a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="returnvalue">JsonArray</span></a> *
|
182
|
-
</td>
|
183
|
-
<td class="function_name">
|
184
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-get-array-element" title="json_array_get_array_element ()">json_array_get_array_element</a> <span class="c_punctuation">()</span>
|
185
|
-
</td>
|
186
|
-
</tr>
|
187
|
-
<tr>
|
188
|
-
<td class="function_type">
|
189
|
-
<span class="returnvalue">void</span>
|
190
|
-
</td>
|
191
|
-
<td class="function_name">
|
192
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-add-boolean-element" title="json_array_add_boolean_element ()">json_array_add_boolean_element</a> <span class="c_punctuation">()</span>
|
193
|
-
</td>
|
194
|
-
</tr>
|
195
|
-
<tr>
|
196
|
-
<td class="function_type">
|
197
|
-
<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>
|
198
|
-
</td>
|
199
|
-
<td class="function_name">
|
200
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-get-boolean-element" title="json_array_get_boolean_element ()">json_array_get_boolean_element</a> <span class="c_punctuation">()</span>
|
201
|
-
</td>
|
202
|
-
</tr>
|
203
|
-
<tr>
|
204
|
-
<td class="function_type">
|
205
|
-
<span class="returnvalue">void</span>
|
206
|
-
</td>
|
207
|
-
<td class="function_name">
|
208
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-add-double-element" title="json_array_add_double_element ()">json_array_add_double_element</a> <span class="c_punctuation">()</span>
|
209
|
-
</td>
|
210
|
-
</tr>
|
211
|
-
<tr>
|
212
|
-
<td class="function_type">
|
213
|
-
<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>
|
214
|
-
</td>
|
215
|
-
<td class="function_name">
|
216
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-get-double-element" title="json_array_get_double_element ()">json_array_get_double_element</a> <span class="c_punctuation">()</span>
|
217
|
-
</td>
|
218
|
-
</tr>
|
219
|
-
<tr>
|
220
|
-
<td class="function_type">
|
221
|
-
<span class="returnvalue">void</span>
|
222
|
-
</td>
|
223
|
-
<td class="function_name">
|
224
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-add-int-element" title="json_array_add_int_element ()">json_array_add_int_element</a> <span class="c_punctuation">()</span>
|
225
|
-
</td>
|
226
|
-
</tr>
|
227
|
-
<tr>
|
228
|
-
<td class="function_type">
|
229
|
-
<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>
|
230
|
-
</td>
|
231
|
-
<td class="function_name">
|
232
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-get-int-element" title="json_array_get_int_element ()">json_array_get_int_element</a> <span class="c_punctuation">()</span>
|
233
|
-
</td>
|
234
|
-
</tr>
|
235
|
-
<tr>
|
236
|
-
<td class="function_type">
|
237
|
-
<span class="returnvalue">void</span>
|
238
|
-
</td>
|
239
|
-
<td class="function_name">
|
240
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-add-null-element" title="json_array_add_null_element ()">json_array_add_null_element</a> <span class="c_punctuation">()</span>
|
241
|
-
</td>
|
242
|
-
</tr>
|
243
|
-
<tr>
|
244
|
-
<td class="function_type">
|
245
|
-
<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>
|
246
|
-
</td>
|
247
|
-
<td class="function_name">
|
248
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-get-null-element" title="json_array_get_null_element ()">json_array_get_null_element</a> <span class="c_punctuation">()</span>
|
249
|
-
</td>
|
250
|
-
</tr>
|
251
|
-
<tr>
|
252
|
-
<td class="function_type">
|
253
|
-
<span class="returnvalue">void</span>
|
254
|
-
</td>
|
255
|
-
<td class="function_name">
|
256
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-add-object-element" title="json_array_add_object_element ()">json_array_add_object_element</a> <span class="c_punctuation">()</span>
|
257
|
-
</td>
|
258
|
-
</tr>
|
259
|
-
<tr>
|
260
|
-
<td class="function_type">
|
261
|
-
<a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="returnvalue">JsonObject</span></a> *
|
262
|
-
</td>
|
263
|
-
<td class="function_name">
|
264
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-get-object-element" title="json_array_get_object_element ()">json_array_get_object_element</a> <span class="c_punctuation">()</span>
|
265
|
-
</td>
|
266
|
-
</tr>
|
267
|
-
<tr>
|
268
|
-
<td class="function_type">
|
269
|
-
<span class="returnvalue">void</span>
|
270
|
-
</td>
|
271
|
-
<td class="function_name">
|
272
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-add-string-element" title="json_array_add_string_element ()">json_array_add_string_element</a> <span class="c_punctuation">()</span>
|
273
|
-
</td>
|
274
|
-
</tr>
|
275
|
-
<tr>
|
276
|
-
<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> *
|
277
|
-
</td>
|
278
|
-
<td class="function_name">
|
279
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-get-string-element" title="json_array_get_string_element ()">json_array_get_string_element</a> <span class="c_punctuation">()</span>
|
280
|
-
</td>
|
281
|
-
</tr>
|
282
|
-
</tbody>
|
283
|
-
</table></div>
|
284
|
-
</div>
|
285
|
-
<a name="JsonArray"></a><div class="refsect1">
|
286
|
-
<a name="json-glib-JSON-Array.other"></a><h2>Types and Values</h2>
|
287
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
288
|
-
<colgroup>
|
289
|
-
<col width="150px" class="name">
|
290
|
-
<col class="description">
|
291
|
-
</colgroup>
|
292
|
-
<tbody><tr>
|
293
|
-
<td class="datatype_keyword"> </td>
|
294
|
-
<td class="function_name"><a class="link" href="json-glib-JSON-Array.html#JsonArray-struct" title="JsonArray">JsonArray</a></td>
|
295
|
-
</tr></tbody>
|
296
|
-
</table></div>
|
297
|
-
</div>
|
298
|
-
<div class="refsect1">
|
299
|
-
<a name="json-glib-JSON-Array.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
300
|
-
<pre class="screen"> <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html">GBoxed</a>
|
301
|
-
<span class="lineart">╰──</span> JsonArray
|
302
|
-
</pre>
|
303
|
-
</div>
|
304
|
-
<div class="refsect1">
|
305
|
-
<a name="json-glib-JSON-Array.includes"></a><h2>Includes</h2>
|
306
|
-
<pre class="synopsis">#include <json-glib/json-glib.h>
|
307
|
-
</pre>
|
308
|
-
</div>
|
309
|
-
<div class="refsect1">
|
310
|
-
<a name="json-glib-JSON-Array.description"></a><h2>Description</h2>
|
311
|
-
<p><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> is the representation of the array type inside JSON. It contains
|
312
|
-
<a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> elements, which may contain fundamental types, other arrays or
|
313
|
-
objects.</p>
|
314
|
-
<p>Since arrays can be expensive, they are reference counted. You can control
|
315
|
-
the lifetime of a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> using <a class="link" href="json-glib-JSON-Array.html#json-array-ref" title="json_array_ref ()"><code class="function">json_array_ref()</code></a> and <a class="link" href="json-glib-JSON-Array.html#json-array-unref" title="json_array_unref ()"><code class="function">json_array_unref()</code></a>.</p>
|
316
|
-
<p>To append an element, use <a class="link" href="json-glib-JSON-Array.html#json-array-add-element" title="json_array_add_element ()"><code class="function">json_array_add_element()</code></a>.
|
317
|
-
To extract an element at a given index, use <a class="link" href="json-glib-JSON-Array.html#json-array-get-element" title="json_array_get_element ()"><code class="function">json_array_get_element()</code></a>.
|
318
|
-
To retrieve the entire array in list form, use <a class="link" href="json-glib-JSON-Array.html#json-array-get-elements" title="json_array_get_elements ()"><code class="function">json_array_get_elements()</code></a>.
|
319
|
-
To retrieve the length of the array, use <a class="link" href="json-glib-JSON-Array.html#json-array-get-length" title="json_array_get_length ()"><code class="function">json_array_get_length()</code></a>.</p>
|
320
|
-
</div>
|
321
|
-
<div class="refsect1">
|
322
|
-
<a name="json-glib-JSON-Array.functions_details"></a><h2>Functions</h2>
|
323
|
-
<div class="refsect2">
|
324
|
-
<a name="json-array-new"></a><h3>json_array_new ()</h3>
|
325
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="returnvalue">JsonArray</span></a> *
|
326
|
-
json_array_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
327
|
-
<p>Creates a new <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a>.</p>
|
328
|
-
<p><span class="annotation">[<acronym title="This symbol is a constructor, not a static method."><span class="acronym">constructor</span></acronym>]</span></p>
|
329
|
-
<div class="refsect3">
|
330
|
-
<a name="json-array-new.returns"></a><h4>Returns</h4>
|
331
|
-
<p> the newly created <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a>. </p>
|
332
|
-
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
333
|
-
</div>
|
334
|
-
</div>
|
335
|
-
<hr>
|
336
|
-
<div class="refsect2">
|
337
|
-
<a name="json-array-sized-new"></a><h3>json_array_sized_new ()</h3>
|
338
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="returnvalue">JsonArray</span></a> *
|
339
|
-
json_array_sized_new (<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> n_elements</code></em>);</pre>
|
340
|
-
<p>Creates a new <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> with <em class="parameter"><code>n_elements</code></em>
|
341
|
-
slots already allocated.</p>
|
342
|
-
<p><span class="annotation">[<acronym title="This symbol is a constructor, not a static method."><span class="acronym">constructor</span></acronym>]</span></p>
|
343
|
-
<div class="refsect3">
|
344
|
-
<a name="json-array-sized-new.parameters"></a><h4>Parameters</h4>
|
345
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
346
|
-
<colgroup>
|
347
|
-
<col width="150px" class="parameters_name">
|
348
|
-
<col class="parameters_description">
|
349
|
-
<col width="200px" class="parameters_annotations">
|
350
|
-
</colgroup>
|
351
|
-
<tbody><tr>
|
352
|
-
<td class="parameter_name"><p>n_elements</p></td>
|
353
|
-
<td class="parameter_description"><p>number of slots to pre-allocate</p></td>
|
354
|
-
<td class="parameter_annotations"> </td>
|
355
|
-
</tr></tbody>
|
356
|
-
</table></div>
|
357
|
-
</div>
|
358
|
-
<div class="refsect3">
|
359
|
-
<a name="json-array-sized-new.returns"></a><h4>Returns</h4>
|
360
|
-
<p> the newly created <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a>. </p>
|
361
|
-
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
362
|
-
</div>
|
363
|
-
</div>
|
364
|
-
<hr>
|
365
|
-
<div class="refsect2">
|
366
|
-
<a name="json-array-ref"></a><h3>json_array_ref ()</h3>
|
367
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="returnvalue">JsonArray</span></a> *
|
368
|
-
json_array_ref (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>);</pre>
|
369
|
-
<p>Increase by one the reference count of a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a>.</p>
|
370
|
-
<div class="refsect3">
|
371
|
-
<a name="json-array-ref.parameters"></a><h4>Parameters</h4>
|
372
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
373
|
-
<colgroup>
|
374
|
-
<col width="150px" class="parameters_name">
|
375
|
-
<col class="parameters_description">
|
376
|
-
<col width="200px" class="parameters_annotations">
|
377
|
-
</colgroup>
|
378
|
-
<tbody><tr>
|
379
|
-
<td class="parameter_name"><p>array</p></td>
|
380
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
381
|
-
<td class="parameter_annotations"> </td>
|
382
|
-
</tr></tbody>
|
383
|
-
</table></div>
|
384
|
-
</div>
|
385
|
-
<div class="refsect3">
|
386
|
-
<a name="json-array-ref.returns"></a><h4>Returns</h4>
|
387
|
-
<p> the passed <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a>, with the reference count
|
388
|
-
increased by one. </p>
|
389
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
390
|
-
</div>
|
391
|
-
</div>
|
392
|
-
<hr>
|
393
|
-
<div class="refsect2">
|
394
|
-
<a name="json-array-unref"></a><h3>json_array_unref ()</h3>
|
395
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
396
|
-
json_array_unref (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>);</pre>
|
397
|
-
<p>Decreases by one the reference count of a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a>. If the
|
398
|
-
reference count reaches zero, the array is destroyed and all
|
399
|
-
its allocated resources are freed.</p>
|
400
|
-
<div class="refsect3">
|
401
|
-
<a name="json-array-unref.parameters"></a><h4>Parameters</h4>
|
402
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
403
|
-
<colgroup>
|
404
|
-
<col width="150px" class="parameters_name">
|
405
|
-
<col class="parameters_description">
|
406
|
-
<col width="200px" class="parameters_annotations">
|
407
|
-
</colgroup>
|
408
|
-
<tbody><tr>
|
409
|
-
<td class="parameter_name"><p>array</p></td>
|
410
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
411
|
-
<td class="parameter_annotations"> </td>
|
412
|
-
</tr></tbody>
|
413
|
-
</table></div>
|
414
|
-
</div>
|
415
|
-
</div>
|
416
|
-
<hr>
|
417
|
-
<div class="refsect2">
|
418
|
-
<a name="json-array-seal"></a><h3>json_array_seal ()</h3>
|
419
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
420
|
-
json_array_seal (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>);</pre>
|
421
|
-
<p>Seals the <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a>, making it immutable to further changes. This will
|
422
|
-
recursively seal all elements in the array too.</p>
|
423
|
-
<p>If the <em class="parameter"><code>array</code></em>
|
424
|
-
is already immutable, this is a no-op.</p>
|
425
|
-
<div class="refsect3">
|
426
|
-
<a name="json-array-seal.parameters"></a><h4>Parameters</h4>
|
427
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
428
|
-
<colgroup>
|
429
|
-
<col width="150px" class="parameters_name">
|
430
|
-
<col class="parameters_description">
|
431
|
-
<col width="200px" class="parameters_annotations">
|
432
|
-
</colgroup>
|
433
|
-
<tbody><tr>
|
434
|
-
<td class="parameter_name"><p>array</p></td>
|
435
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
436
|
-
<td class="parameter_annotations"> </td>
|
437
|
-
</tr></tbody>
|
438
|
-
</table></div>
|
439
|
-
</div>
|
440
|
-
<p class="since">Since: <a class="link" href="ix11.html#api-index-1.2">1.2</a></p>
|
441
|
-
</div>
|
442
|
-
<hr>
|
443
|
-
<div class="refsect2">
|
444
|
-
<a name="json-array-is-immutable"></a><h3>json_array_is_immutable ()</h3>
|
445
|
-
<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>
|
446
|
-
json_array_is_immutable (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>);</pre>
|
447
|
-
<p>Check whether the given <em class="parameter"><code>array</code></em>
|
448
|
-
has been marked as immutable by calling
|
449
|
-
<a class="link" href="json-glib-JSON-Array.html#json-array-seal" title="json_array_seal ()"><code class="function">json_array_seal()</code></a> on it.</p>
|
450
|
-
<div class="refsect3">
|
451
|
-
<a name="json-array-is-immutable.parameters"></a><h4>Parameters</h4>
|
452
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
453
|
-
<colgroup>
|
454
|
-
<col width="150px" class="parameters_name">
|
455
|
-
<col class="parameters_description">
|
456
|
-
<col width="200px" class="parameters_annotations">
|
457
|
-
</colgroup>
|
458
|
-
<tbody><tr>
|
459
|
-
<td class="parameter_name"><p>array</p></td>
|
460
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
461
|
-
<td class="parameter_annotations"> </td>
|
462
|
-
</tr></tbody>
|
463
|
-
</table></div>
|
464
|
-
</div>
|
465
|
-
<div class="refsect3">
|
466
|
-
<a name="json-array-is-immutable.returns"></a><h4>Returns</h4>
|
467
|
-
<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>array</code></em>
|
468
|
-
is immutable</p>
|
469
|
-
</div>
|
470
|
-
<p class="since">Since: <a class="link" href="ix11.html#api-index-1.2">1.2</a></p>
|
471
|
-
</div>
|
472
|
-
<hr>
|
473
|
-
<div class="refsect2">
|
474
|
-
<a name="json-array-hash"></a><h3>json_array_hash ()</h3>
|
475
|
-
<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>
|
476
|
-
json_array_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>
|
477
|
-
<p>Calculate a hash value for the given <em class="parameter"><code>key</code></em>
|
478
|
-
(a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a>).</p>
|
479
|
-
<p>The hash is calculated over the array and all its elements, recursively. If
|
480
|
-
the array is immutable, this is a fast operation; otherwise, it scales
|
481
|
-
proportionally with the length of the array.</p>
|
482
|
-
<div class="refsect3">
|
483
|
-
<a name="json-array-hash.parameters"></a><h4>Parameters</h4>
|
484
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
485
|
-
<colgroup>
|
486
|
-
<col width="150px" class="parameters_name">
|
487
|
-
<col class="parameters_description">
|
488
|
-
<col width="200px" class="parameters_annotations">
|
489
|
-
</colgroup>
|
490
|
-
<tbody><tr>
|
491
|
-
<td class="parameter_name"><p>key</p></td>
|
492
|
-
<td class="parameter_description"><p> a JSON array to hash. </p></td>
|
493
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> JsonArray]</span></td>
|
494
|
-
</tr></tbody>
|
495
|
-
</table></div>
|
496
|
-
</div>
|
497
|
-
<div class="refsect3">
|
498
|
-
<a name="json-array-hash.returns"></a><h4>Returns</h4>
|
499
|
-
<p> hash value for <em class="parameter"><code>key</code></em>
|
500
|
-
</p>
|
501
|
-
</div>
|
502
|
-
<p class="since">Since: <a class="link" href="ix11.html#api-index-1.2">1.2</a></p>
|
503
|
-
</div>
|
504
|
-
<hr>
|
505
|
-
<div class="refsect2">
|
506
|
-
<a name="json-array-equal"></a><h3>json_array_equal ()</h3>
|
507
|
-
<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>
|
508
|
-
json_array_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>,
|
509
|
-
<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>
|
510
|
-
<p>Check whether <em class="parameter"><code>a</code></em>
|
511
|
-
and <em class="parameter"><code>b</code></em>
|
512
|
-
are equal <a href="json-glib-JSON-Array.html#JsonArray-struct"><span class="type">JsonArrays</span></a>, meaning they have the same
|
513
|
-
number of elements, and the values of elements in corresponding positions
|
514
|
-
are equal.</p>
|
515
|
-
<div class="refsect3">
|
516
|
-
<a name="json-array-equal.parameters"></a><h4>Parameters</h4>
|
517
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
518
|
-
<colgroup>
|
519
|
-
<col width="150px" class="parameters_name">
|
520
|
-
<col class="parameters_description">
|
521
|
-
<col width="200px" class="parameters_annotations">
|
522
|
-
</colgroup>
|
523
|
-
<tbody>
|
524
|
-
<tr>
|
525
|
-
<td class="parameter_name"><p>a</p></td>
|
526
|
-
<td class="parameter_description"><p> a JSON array. </p></td>
|
527
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> JsonArray]</span></td>
|
528
|
-
</tr>
|
529
|
-
<tr>
|
530
|
-
<td class="parameter_name"><p>b</p></td>
|
531
|
-
<td class="parameter_description"><p> another JSON array. </p></td>
|
532
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Override the parsed C type with given type."><span class="acronym">type</span></acronym> JsonArray]</span></td>
|
533
|
-
</tr>
|
534
|
-
</tbody>
|
535
|
-
</table></div>
|
536
|
-
</div>
|
537
|
-
<div class="refsect3">
|
538
|
-
<a name="json-array-equal.returns"></a><h4>Returns</h4>
|
539
|
-
<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>
|
540
|
-
and <em class="parameter"><code>b</code></em>
|
541
|
-
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>
|
542
|
-
</div>
|
543
|
-
<p class="since">Since: <a class="link" href="ix11.html#api-index-1.2">1.2</a></p>
|
544
|
-
</div>
|
545
|
-
<hr>
|
546
|
-
<div class="refsect2">
|
547
|
-
<a name="json-array-add-element"></a><h3>json_array_add_element ()</h3>
|
548
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
549
|
-
json_array_add_element (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>,
|
550
|
-
<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
|
551
|
-
<p>Appends <em class="parameter"><code>node</code></em>
|
552
|
-
inside <em class="parameter"><code>array</code></em>
|
553
|
-
. The array will take ownership of the
|
554
|
-
<a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>.</p>
|
555
|
-
<div class="refsect3">
|
556
|
-
<a name="json-array-add-element.parameters"></a><h4>Parameters</h4>
|
557
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
558
|
-
<colgroup>
|
559
|
-
<col width="150px" class="parameters_name">
|
560
|
-
<col class="parameters_description">
|
561
|
-
<col width="200px" class="parameters_annotations">
|
562
|
-
</colgroup>
|
563
|
-
<tbody>
|
564
|
-
<tr>
|
565
|
-
<td class="parameter_name"><p>array</p></td>
|
566
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
567
|
-
<td class="parameter_annotations"> </td>
|
568
|
-
</tr>
|
569
|
-
<tr>
|
570
|
-
<td class="parameter_name"><p>node</p></td>
|
571
|
-
<td class="parameter_description"><p> a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. </p></td>
|
572
|
-
<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>
|
573
|
-
</tr>
|
574
|
-
</tbody>
|
575
|
-
</table></div>
|
576
|
-
</div>
|
577
|
-
</div>
|
578
|
-
<hr>
|
579
|
-
<div class="refsect2">
|
580
|
-
<a name="json-array-get-element"></a><h3>json_array_get_element ()</h3>
|
581
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
582
|
-
json_array_get_element (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>,
|
583
|
-
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> index_</code></em>);</pre>
|
584
|
-
<p>Retrieves the <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> containing the value of the element at <em class="parameter"><code>index_</code></em>
|
585
|
-
|
586
|
-
inside a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a>.</p>
|
587
|
-
<div class="refsect3">
|
588
|
-
<a name="json-array-get-element.parameters"></a><h4>Parameters</h4>
|
589
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
590
|
-
<colgroup>
|
591
|
-
<col width="150px" class="parameters_name">
|
592
|
-
<col class="parameters_description">
|
593
|
-
<col width="200px" class="parameters_annotations">
|
594
|
-
</colgroup>
|
595
|
-
<tbody>
|
596
|
-
<tr>
|
597
|
-
<td class="parameter_name"><p>array</p></td>
|
598
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
599
|
-
<td class="parameter_annotations"> </td>
|
600
|
-
</tr>
|
601
|
-
<tr>
|
602
|
-
<td class="parameter_name"><p>index_</p></td>
|
603
|
-
<td class="parameter_description"><p>the index of the element to retrieve</p></td>
|
604
|
-
<td class="parameter_annotations"> </td>
|
605
|
-
</tr>
|
606
|
-
</tbody>
|
607
|
-
</table></div>
|
608
|
-
</div>
|
609
|
-
<div class="refsect3">
|
610
|
-
<a name="json-array-get-element.returns"></a><h4>Returns</h4>
|
611
|
-
<p> a pointer to the <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> at the requested index. </p>
|
612
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
613
|
-
</div>
|
614
|
-
</div>
|
615
|
-
<hr>
|
616
|
-
<div class="refsect2">
|
617
|
-
<a name="json-array-dup-element"></a><h3>json_array_dup_element ()</h3>
|
618
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
|
619
|
-
json_array_dup_element (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>,
|
620
|
-
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> index_</code></em>);</pre>
|
621
|
-
<p>Retrieves a copy of the <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> containing the value of the
|
622
|
-
element at <em class="parameter"><code>index_</code></em>
|
623
|
-
inside a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p>
|
624
|
-
<div class="refsect3">
|
625
|
-
<a name="json-array-dup-element.parameters"></a><h4>Parameters</h4>
|
626
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
627
|
-
<colgroup>
|
628
|
-
<col width="150px" class="parameters_name">
|
629
|
-
<col class="parameters_description">
|
630
|
-
<col width="200px" class="parameters_annotations">
|
631
|
-
</colgroup>
|
632
|
-
<tbody>
|
633
|
-
<tr>
|
634
|
-
<td class="parameter_name"><p>array</p></td>
|
635
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
636
|
-
<td class="parameter_annotations"> </td>
|
637
|
-
</tr>
|
638
|
-
<tr>
|
639
|
-
<td class="parameter_name"><p>index_</p></td>
|
640
|
-
<td class="parameter_description"><p>the index of the element to retrieve</p></td>
|
641
|
-
<td class="parameter_annotations"> </td>
|
642
|
-
</tr>
|
643
|
-
</tbody>
|
644
|
-
</table></div>
|
645
|
-
</div>
|
646
|
-
<div class="refsect3">
|
647
|
-
<a name="json-array-dup-element.returns"></a><h4>Returns</h4>
|
648
|
-
<p> a copy of the <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> at the requested
|
649
|
-
index. Use <a class="link" href="json-glib-JSON-Node.html#json-node-unref" title="json_node_unref ()"><code class="function">json_node_unref()</code></a> when done. </p>
|
650
|
-
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
651
|
-
</div>
|
652
|
-
<p class="since">Since: <a class="link" href="ix04.html#api-index-0.6">0.6</a></p>
|
653
|
-
</div>
|
654
|
-
<hr>
|
655
|
-
<div class="refsect2">
|
656
|
-
<a name="json-array-get-elements"></a><h3>json_array_get_elements ()</h3>
|
657
|
-
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
|
658
|
-
json_array_get_elements (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>);</pre>
|
659
|
-
<p>Gets the elements of a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> as a list of <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> instances.</p>
|
660
|
-
<div class="refsect3">
|
661
|
-
<a name="json-array-get-elements.parameters"></a><h4>Parameters</h4>
|
662
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
663
|
-
<colgroup>
|
664
|
-
<col width="150px" class="parameters_name">
|
665
|
-
<col class="parameters_description">
|
666
|
-
<col width="200px" class="parameters_annotations">
|
667
|
-
</colgroup>
|
668
|
-
<tbody><tr>
|
669
|
-
<td class="parameter_name"><p>array</p></td>
|
670
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
671
|
-
<td class="parameter_annotations"> </td>
|
672
|
-
</tr></tbody>
|
673
|
-
</table></div>
|
674
|
-
</div>
|
675
|
-
<div class="refsect3">
|
676
|
-
<a name="json-array-get-elements.returns"></a><h4>Returns</h4>
|
677
|
-
<p> a <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a>
|
678
|
-
containing the elements of the array. The contents of the list are
|
679
|
-
owned by the array and should never be modified or freed. Use
|
680
|
-
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a> on the returned list when done using it. </p>
|
681
|
-
<p><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> JsonNode][<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>]</span></p>
|
682
|
-
</div>
|
683
|
-
</div>
|
684
|
-
<hr>
|
685
|
-
<div class="refsect2">
|
686
|
-
<a name="json-array-get-length"></a><h3>json_array_get_length ()</h3>
|
687
|
-
<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>
|
688
|
-
json_array_get_length (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>);</pre>
|
689
|
-
<p>Retrieves the length of a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p>
|
690
|
-
<div class="refsect3">
|
691
|
-
<a name="json-array-get-length.parameters"></a><h4>Parameters</h4>
|
692
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
693
|
-
<colgroup>
|
694
|
-
<col width="150px" class="parameters_name">
|
695
|
-
<col class="parameters_description">
|
696
|
-
<col width="200px" class="parameters_annotations">
|
697
|
-
</colgroup>
|
698
|
-
<tbody><tr>
|
699
|
-
<td class="parameter_name"><p>array</p></td>
|
700
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
701
|
-
<td class="parameter_annotations"> </td>
|
702
|
-
</tr></tbody>
|
703
|
-
</table></div>
|
704
|
-
</div>
|
705
|
-
<div class="refsect3">
|
706
|
-
<a name="json-array-get-length.returns"></a><h4>Returns</h4>
|
707
|
-
<p> the length of the array</p>
|
708
|
-
</div>
|
709
|
-
</div>
|
710
|
-
<hr>
|
711
|
-
<div class="refsect2">
|
712
|
-
<a name="json-array-remove-element"></a><h3>json_array_remove_element ()</h3>
|
713
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
714
|
-
json_array_remove_element (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>,
|
715
|
-
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> index_</code></em>);</pre>
|
716
|
-
<p>Removes the <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> inside <em class="parameter"><code>array</code></em>
|
717
|
-
at <em class="parameter"><code>index_</code></em>
|
718
|
-
freeing its allocated
|
719
|
-
resources.</p>
|
720
|
-
<div class="refsect3">
|
721
|
-
<a name="json-array-remove-element.parameters"></a><h4>Parameters</h4>
|
722
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
723
|
-
<colgroup>
|
724
|
-
<col width="150px" class="parameters_name">
|
725
|
-
<col class="parameters_description">
|
726
|
-
<col width="200px" class="parameters_annotations">
|
727
|
-
</colgroup>
|
728
|
-
<tbody>
|
729
|
-
<tr>
|
730
|
-
<td class="parameter_name"><p>array</p></td>
|
731
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
732
|
-
<td class="parameter_annotations"> </td>
|
733
|
-
</tr>
|
734
|
-
<tr>
|
735
|
-
<td class="parameter_name"><p>index_</p></td>
|
736
|
-
<td class="parameter_description"><p>the position of the element to be removed</p></td>
|
737
|
-
<td class="parameter_annotations"> </td>
|
738
|
-
</tr>
|
739
|
-
</tbody>
|
740
|
-
</table></div>
|
741
|
-
</div>
|
742
|
-
</div>
|
743
|
-
<hr>
|
744
|
-
<div class="refsect2">
|
745
|
-
<a name="JsonArrayForeach"></a><h3>JsonArrayForeach ()</h3>
|
746
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
747
|
-
<span class="c_punctuation">(</span>*JsonArrayForeach<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>,
|
748
|
-
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> index_</code></em>,
|
749
|
-
<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *element_node</code></em>,
|
750
|
-
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
751
|
-
<p>The function to be passed to <a class="link" href="json-glib-JSON-Array.html#json-array-foreach-element" title="json_array_foreach_element ()"><code class="function">json_array_foreach_element()</code></a>. You
|
752
|
-
should not add or remove elements to and from <em class="parameter"><code>array</code></em>
|
753
|
-
within
|
754
|
-
this function. It is safe to change the value of <em class="parameter"><code>element_node</code></em>
|
755
|
-
.</p>
|
756
|
-
<div class="refsect3">
|
757
|
-
<a name="JsonArrayForeach.parameters"></a><h4>Parameters</h4>
|
758
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
759
|
-
<colgroup>
|
760
|
-
<col width="150px" class="parameters_name">
|
761
|
-
<col class="parameters_description">
|
762
|
-
<col width="200px" class="parameters_annotations">
|
763
|
-
</colgroup>
|
764
|
-
<tbody>
|
765
|
-
<tr>
|
766
|
-
<td class="parameter_name"><p>array</p></td>
|
767
|
-
<td class="parameter_description"><p>the iterated <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
768
|
-
<td class="parameter_annotations"> </td>
|
769
|
-
</tr>
|
770
|
-
<tr>
|
771
|
-
<td class="parameter_name"><p>index_</p></td>
|
772
|
-
<td class="parameter_description"><p>the index of the element</p></td>
|
773
|
-
<td class="parameter_annotations"> </td>
|
774
|
-
</tr>
|
775
|
-
<tr>
|
776
|
-
<td class="parameter_name"><p>element_node</p></td>
|
777
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> containing the value at <em class="parameter"><code>index_</code></em>
|
778
|
-
</p></td>
|
779
|
-
<td class="parameter_annotations"> </td>
|
780
|
-
</tr>
|
781
|
-
<tr>
|
782
|
-
<td class="parameter_name"><p>user_data</p></td>
|
783
|
-
<td class="parameter_description"><p>data passed to the function</p></td>
|
784
|
-
<td class="parameter_annotations"> </td>
|
785
|
-
</tr>
|
786
|
-
</tbody>
|
787
|
-
</table></div>
|
788
|
-
</div>
|
789
|
-
<p class="since">Since: <a class="link" href="ix05.html#api-index-0.8">0.8</a></p>
|
790
|
-
</div>
|
791
|
-
<hr>
|
792
|
-
<div class="refsect2">
|
793
|
-
<a name="json-array-foreach-element"></a><h3>json_array_foreach_element ()</h3>
|
794
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
795
|
-
json_array_foreach_element (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>,
|
796
|
-
<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArrayForeach" title="JsonArrayForeach ()"><span class="type">JsonArrayForeach</span></a> func</code></em>,
|
797
|
-
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
|
798
|
-
<p>Iterates over all elements of <em class="parameter"><code>array</code></em>
|
799
|
-
and calls <em class="parameter"><code>func</code></em>
|
800
|
-
on
|
801
|
-
each one of them.</p>
|
802
|
-
<p>It is safe to change the value of a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> of the <em class="parameter"><code>array</code></em>
|
803
|
-
|
804
|
-
from within the iterator <em class="parameter"><code>func</code></em>
|
805
|
-
, but it is not safe to add or
|
806
|
-
remove elements from the <em class="parameter"><code>array</code></em>
|
807
|
-
.</p>
|
808
|
-
<div class="refsect3">
|
809
|
-
<a name="json-array-foreach-element.parameters"></a><h4>Parameters</h4>
|
810
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
811
|
-
<colgroup>
|
812
|
-
<col width="150px" class="parameters_name">
|
813
|
-
<col class="parameters_description">
|
814
|
-
<col width="200px" class="parameters_annotations">
|
815
|
-
</colgroup>
|
816
|
-
<tbody>
|
817
|
-
<tr>
|
818
|
-
<td class="parameter_name"><p>array</p></td>
|
819
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
820
|
-
<td class="parameter_annotations"> </td>
|
821
|
-
</tr>
|
822
|
-
<tr>
|
823
|
-
<td class="parameter_name"><p>func</p></td>
|
824
|
-
<td class="parameter_description"><p> the function to be called on each element. </p></td>
|
825
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>]</span></td>
|
826
|
-
</tr>
|
827
|
-
<tr>
|
828
|
-
<td class="parameter_name"><p>data</p></td>
|
829
|
-
<td class="parameter_description"><p> data to be passed to the function. </p></td>
|
830
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span></td>
|
831
|
-
</tr>
|
832
|
-
</tbody>
|
833
|
-
</table></div>
|
834
|
-
</div>
|
835
|
-
<p class="since">Since: <a class="link" href="ix05.html#api-index-0.8">0.8</a></p>
|
836
|
-
</div>
|
837
|
-
<hr>
|
838
|
-
<div class="refsect2">
|
839
|
-
<a name="json-array-add-array-element"></a><h3>json_array_add_array_element ()</h3>
|
840
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
841
|
-
json_array_add_array_element (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>,
|
842
|
-
<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *value</code></em>);</pre>
|
843
|
-
<p>Conveniently adds an array into <em class="parameter"><code>array</code></em>
|
844
|
-
. The <em class="parameter"><code>array</code></em>
|
845
|
-
takes ownership
|
846
|
-
of the newly added <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p>
|
847
|
-
<p>See also: <a class="link" href="json-glib-JSON-Array.html#json-array-add-element" title="json_array_add_element ()"><code class="function">json_array_add_element()</code></a>, <a class="link" href="json-glib-JSON-Node.html#json-node-take-array" title="json_node_take_array ()"><code class="function">json_node_take_array()</code></a></p>
|
848
|
-
<div class="refsect3">
|
849
|
-
<a name="json-array-add-array-element.parameters"></a><h4>Parameters</h4>
|
850
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
851
|
-
<colgroup>
|
852
|
-
<col width="150px" class="parameters_name">
|
853
|
-
<col class="parameters_description">
|
854
|
-
<col width="200px" class="parameters_annotations">
|
855
|
-
</colgroup>
|
856
|
-
<tbody>
|
857
|
-
<tr>
|
858
|
-
<td class="parameter_name"><p>array</p></td>
|
859
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
860
|
-
<td class="parameter_annotations"> </td>
|
861
|
-
</tr>
|
862
|
-
<tr>
|
863
|
-
<td class="parameter_name"><p>value</p></td>
|
864
|
-
<td class="parameter_description"><p> a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a>. </p></td>
|
865
|
-
<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>][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td>
|
866
|
-
</tr>
|
867
|
-
</tbody>
|
868
|
-
</table></div>
|
869
|
-
</div>
|
870
|
-
<p class="since">Since: <a class="link" href="ix05.html#api-index-0.8">0.8</a></p>
|
871
|
-
</div>
|
872
|
-
<hr>
|
873
|
-
<div class="refsect2">
|
874
|
-
<a name="json-array-get-array-element"></a><h3>json_array_get_array_element ()</h3>
|
875
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="returnvalue">JsonArray</span></a> *
|
876
|
-
json_array_get_array_element (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>,
|
877
|
-
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> index_</code></em>);</pre>
|
878
|
-
<p>Conveniently retrieves the array from the element at <em class="parameter"><code>index_</code></em>
|
879
|
-
|
880
|
-
inside <em class="parameter"><code>array</code></em>
|
881
|
-
</p>
|
882
|
-
<p>See also: <a class="link" href="json-glib-JSON-Array.html#json-array-get-element" title="json_array_get_element ()"><code class="function">json_array_get_element()</code></a>, <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></p>
|
883
|
-
<div class="refsect3">
|
884
|
-
<a name="json-array-get-array-element.parameters"></a><h4>Parameters</h4>
|
885
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
886
|
-
<colgroup>
|
887
|
-
<col width="150px" class="parameters_name">
|
888
|
-
<col class="parameters_description">
|
889
|
-
<col width="200px" class="parameters_annotations">
|
890
|
-
</colgroup>
|
891
|
-
<tbody>
|
892
|
-
<tr>
|
893
|
-
<td class="parameter_name"><p>array</p></td>
|
894
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
895
|
-
<td class="parameter_annotations"> </td>
|
896
|
-
</tr>
|
897
|
-
<tr>
|
898
|
-
<td class="parameter_name"><p>index_</p></td>
|
899
|
-
<td class="parameter_description"><p>the index of the element to retrieve</p></td>
|
900
|
-
<td class="parameter_annotations"> </td>
|
901
|
-
</tr>
|
902
|
-
</tbody>
|
903
|
-
</table></div>
|
904
|
-
</div>
|
905
|
-
<div class="refsect3">
|
906
|
-
<a name="json-array-get-array-element.returns"></a><h4>Returns</h4>
|
907
|
-
<p> the array. </p>
|
908
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
909
|
-
</div>
|
910
|
-
<p class="since">Since: <a class="link" href="ix05.html#api-index-0.8">0.8</a></p>
|
911
|
-
</div>
|
912
|
-
<hr>
|
913
|
-
<div class="refsect2">
|
914
|
-
<a name="json-array-add-boolean-element"></a><h3>json_array_add_boolean_element ()</h3>
|
915
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
916
|
-
json_array_add_boolean_element (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>,
|
917
|
-
<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>
|
918
|
-
<p>Conveniently adds a boolean <em class="parameter"><code>value</code></em>
|
919
|
-
into <em class="parameter"><code>array</code></em>
|
920
|
-
</p>
|
921
|
-
<p>See also: <a class="link" href="json-glib-JSON-Array.html#json-array-add-element" title="json_array_add_element ()"><code class="function">json_array_add_element()</code></a>, <a class="link" href="json-glib-JSON-Node.html#json-node-set-boolean" title="json_node_set_boolean ()"><code class="function">json_node_set_boolean()</code></a></p>
|
922
|
-
<div class="refsect3">
|
923
|
-
<a name="json-array-add-boolean-element.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>array</p></td>
|
933
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
934
|
-
<td class="parameter_annotations"> </td>
|
935
|
-
</tr>
|
936
|
-
<tr>
|
937
|
-
<td class="parameter_name"><p>value</p></td>
|
938
|
-
<td class="parameter_description"><p>a boolean value</p></td>
|
939
|
-
<td class="parameter_annotations"> </td>
|
940
|
-
</tr>
|
941
|
-
</tbody>
|
942
|
-
</table></div>
|
943
|
-
</div>
|
944
|
-
<p class="since">Since: <a class="link" href="ix05.html#api-index-0.8">0.8</a></p>
|
945
|
-
</div>
|
946
|
-
<hr>
|
947
|
-
<div class="refsect2">
|
948
|
-
<a name="json-array-get-boolean-element"></a><h3>json_array_get_boolean_element ()</h3>
|
949
|
-
<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>
|
950
|
-
json_array_get_boolean_element (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>,
|
951
|
-
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> index_</code></em>);</pre>
|
952
|
-
<p>Conveniently retrieves the boolean value of the element at <em class="parameter"><code>index_</code></em>
|
953
|
-
|
954
|
-
inside <em class="parameter"><code>array</code></em>
|
955
|
-
</p>
|
956
|
-
<p>See also: <a class="link" href="json-glib-JSON-Array.html#json-array-get-element" title="json_array_get_element ()"><code class="function">json_array_get_element()</code></a>, <a class="link" href="json-glib-JSON-Node.html#json-node-get-boolean" title="json_node_get_boolean ()"><code class="function">json_node_get_boolean()</code></a></p>
|
957
|
-
<div class="refsect3">
|
958
|
-
<a name="json-array-get-boolean-element.parameters"></a><h4>Parameters</h4>
|
959
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
960
|
-
<colgroup>
|
961
|
-
<col width="150px" class="parameters_name">
|
962
|
-
<col class="parameters_description">
|
963
|
-
<col width="200px" class="parameters_annotations">
|
964
|
-
</colgroup>
|
965
|
-
<tbody>
|
966
|
-
<tr>
|
967
|
-
<td class="parameter_name"><p>array</p></td>
|
968
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
969
|
-
<td class="parameter_annotations"> </td>
|
970
|
-
</tr>
|
971
|
-
<tr>
|
972
|
-
<td class="parameter_name"><p>index_</p></td>
|
973
|
-
<td class="parameter_description"><p>the index of the element to retrieve</p></td>
|
974
|
-
<td class="parameter_annotations"> </td>
|
975
|
-
</tr>
|
976
|
-
</tbody>
|
977
|
-
</table></div>
|
978
|
-
</div>
|
979
|
-
<div class="refsect3">
|
980
|
-
<a name="json-array-get-boolean-element.returns"></a><h4>Returns</h4>
|
981
|
-
<p> the integer value</p>
|
982
|
-
</div>
|
983
|
-
<p class="since">Since: <a class="link" href="ix05.html#api-index-0.8">0.8</a></p>
|
984
|
-
</div>
|
985
|
-
<hr>
|
986
|
-
<div class="refsect2">
|
987
|
-
<a name="json-array-add-double-element"></a><h3>json_array_add_double_element ()</h3>
|
988
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
989
|
-
json_array_add_double_element (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>,
|
990
|
-
<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>
|
991
|
-
<p>Conveniently adds a floating point <em class="parameter"><code>value</code></em>
|
992
|
-
into <em class="parameter"><code>array</code></em>
|
993
|
-
</p>
|
994
|
-
<p>See also: <a class="link" href="json-glib-JSON-Array.html#json-array-add-element" title="json_array_add_element ()"><code class="function">json_array_add_element()</code></a>, <a class="link" href="json-glib-JSON-Node.html#json-node-set-double" title="json_node_set_double ()"><code class="function">json_node_set_double()</code></a></p>
|
995
|
-
<div class="refsect3">
|
996
|
-
<a name="json-array-add-double-element.parameters"></a><h4>Parameters</h4>
|
997
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
998
|
-
<colgroup>
|
999
|
-
<col width="150px" class="parameters_name">
|
1000
|
-
<col class="parameters_description">
|
1001
|
-
<col width="200px" class="parameters_annotations">
|
1002
|
-
</colgroup>
|
1003
|
-
<tbody>
|
1004
|
-
<tr>
|
1005
|
-
<td class="parameter_name"><p>array</p></td>
|
1006
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
1007
|
-
<td class="parameter_annotations"> </td>
|
1008
|
-
</tr>
|
1009
|
-
<tr>
|
1010
|
-
<td class="parameter_name"><p>value</p></td>
|
1011
|
-
<td class="parameter_description"><p>a floating point value</p></td>
|
1012
|
-
<td class="parameter_annotations"> </td>
|
1013
|
-
</tr>
|
1014
|
-
</tbody>
|
1015
|
-
</table></div>
|
1016
|
-
</div>
|
1017
|
-
<p class="since">Since: <a class="link" href="ix05.html#api-index-0.8">0.8</a></p>
|
1018
|
-
</div>
|
1019
|
-
<hr>
|
1020
|
-
<div class="refsect2">
|
1021
|
-
<a name="json-array-get-double-element"></a><h3>json_array_get_double_element ()</h3>
|
1022
|
-
<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>
|
1023
|
-
json_array_get_double_element (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>,
|
1024
|
-
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> index_</code></em>);</pre>
|
1025
|
-
<p>Conveniently retrieves the floating point value of the element at
|
1026
|
-
<em class="parameter"><code>index_</code></em>
|
1027
|
-
inside <em class="parameter"><code>array</code></em>
|
1028
|
-
</p>
|
1029
|
-
<p>See also: <a class="link" href="json-glib-JSON-Array.html#json-array-get-element" title="json_array_get_element ()"><code class="function">json_array_get_element()</code></a>, <a class="link" href="json-glib-JSON-Node.html#json-node-get-double" title="json_node_get_double ()"><code class="function">json_node_get_double()</code></a></p>
|
1030
|
-
<div class="refsect3">
|
1031
|
-
<a name="json-array-get-double-element.parameters"></a><h4>Parameters</h4>
|
1032
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1033
|
-
<colgroup>
|
1034
|
-
<col width="150px" class="parameters_name">
|
1035
|
-
<col class="parameters_description">
|
1036
|
-
<col width="200px" class="parameters_annotations">
|
1037
|
-
</colgroup>
|
1038
|
-
<tbody>
|
1039
|
-
<tr>
|
1040
|
-
<td class="parameter_name"><p>array</p></td>
|
1041
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
1042
|
-
<td class="parameter_annotations"> </td>
|
1043
|
-
</tr>
|
1044
|
-
<tr>
|
1045
|
-
<td class="parameter_name"><p>index_</p></td>
|
1046
|
-
<td class="parameter_description"><p>the index of the element to retrieve</p></td>
|
1047
|
-
<td class="parameter_annotations"> </td>
|
1048
|
-
</tr>
|
1049
|
-
</tbody>
|
1050
|
-
</table></div>
|
1051
|
-
</div>
|
1052
|
-
<div class="refsect3">
|
1053
|
-
<a name="json-array-get-double-element.returns"></a><h4>Returns</h4>
|
1054
|
-
<p> the floating point value</p>
|
1055
|
-
</div>
|
1056
|
-
<p class="since">Since: <a class="link" href="ix05.html#api-index-0.8">0.8</a></p>
|
1057
|
-
</div>
|
1058
|
-
<hr>
|
1059
|
-
<div class="refsect2">
|
1060
|
-
<a name="json-array-add-int-element"></a><h3>json_array_add_int_element ()</h3>
|
1061
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1062
|
-
json_array_add_int_element (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>,
|
1063
|
-
<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>
|
1064
|
-
<p>Conveniently adds an integer <em class="parameter"><code>value</code></em>
|
1065
|
-
into <em class="parameter"><code>array</code></em>
|
1066
|
-
</p>
|
1067
|
-
<p>See also: <a class="link" href="json-glib-JSON-Array.html#json-array-add-element" title="json_array_add_element ()"><code class="function">json_array_add_element()</code></a>, <a class="link" href="json-glib-JSON-Node.html#json-node-set-int" title="json_node_set_int ()"><code class="function">json_node_set_int()</code></a></p>
|
1068
|
-
<div class="refsect3">
|
1069
|
-
<a name="json-array-add-int-element.parameters"></a><h4>Parameters</h4>
|
1070
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1071
|
-
<colgroup>
|
1072
|
-
<col width="150px" class="parameters_name">
|
1073
|
-
<col class="parameters_description">
|
1074
|
-
<col width="200px" class="parameters_annotations">
|
1075
|
-
</colgroup>
|
1076
|
-
<tbody>
|
1077
|
-
<tr>
|
1078
|
-
<td class="parameter_name"><p>array</p></td>
|
1079
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
1080
|
-
<td class="parameter_annotations"> </td>
|
1081
|
-
</tr>
|
1082
|
-
<tr>
|
1083
|
-
<td class="parameter_name"><p>value</p></td>
|
1084
|
-
<td class="parameter_description"><p>an integer value</p></td>
|
1085
|
-
<td class="parameter_annotations"> </td>
|
1086
|
-
</tr>
|
1087
|
-
</tbody>
|
1088
|
-
</table></div>
|
1089
|
-
</div>
|
1090
|
-
<p class="since">Since: <a class="link" href="ix05.html#api-index-0.8">0.8</a></p>
|
1091
|
-
</div>
|
1092
|
-
<hr>
|
1093
|
-
<div class="refsect2">
|
1094
|
-
<a name="json-array-get-int-element"></a><h3>json_array_get_int_element ()</h3>
|
1095
|
-
<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>
|
1096
|
-
json_array_get_int_element (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>,
|
1097
|
-
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> index_</code></em>);</pre>
|
1098
|
-
<p>Conveniently retrieves the integer value of the element at <em class="parameter"><code>index_</code></em>
|
1099
|
-
|
1100
|
-
inside <em class="parameter"><code>array</code></em>
|
1101
|
-
</p>
|
1102
|
-
<p>See also: <a class="link" href="json-glib-JSON-Array.html#json-array-get-element" title="json_array_get_element ()"><code class="function">json_array_get_element()</code></a>, <a class="link" href="json-glib-JSON-Node.html#json-node-get-int" title="json_node_get_int ()"><code class="function">json_node_get_int()</code></a></p>
|
1103
|
-
<div class="refsect3">
|
1104
|
-
<a name="json-array-get-int-element.parameters"></a><h4>Parameters</h4>
|
1105
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1106
|
-
<colgroup>
|
1107
|
-
<col width="150px" class="parameters_name">
|
1108
|
-
<col class="parameters_description">
|
1109
|
-
<col width="200px" class="parameters_annotations">
|
1110
|
-
</colgroup>
|
1111
|
-
<tbody>
|
1112
|
-
<tr>
|
1113
|
-
<td class="parameter_name"><p>array</p></td>
|
1114
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
1115
|
-
<td class="parameter_annotations"> </td>
|
1116
|
-
</tr>
|
1117
|
-
<tr>
|
1118
|
-
<td class="parameter_name"><p>index_</p></td>
|
1119
|
-
<td class="parameter_description"><p>the index of the element to retrieve</p></td>
|
1120
|
-
<td class="parameter_annotations"> </td>
|
1121
|
-
</tr>
|
1122
|
-
</tbody>
|
1123
|
-
</table></div>
|
1124
|
-
</div>
|
1125
|
-
<div class="refsect3">
|
1126
|
-
<a name="json-array-get-int-element.returns"></a><h4>Returns</h4>
|
1127
|
-
<p> the integer value</p>
|
1128
|
-
</div>
|
1129
|
-
<p class="since">Since: <a class="link" href="ix05.html#api-index-0.8">0.8</a></p>
|
1130
|
-
</div>
|
1131
|
-
<hr>
|
1132
|
-
<div class="refsect2">
|
1133
|
-
<a name="json-array-add-null-element"></a><h3>json_array_add_null_element ()</h3>
|
1134
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1135
|
-
json_array_add_null_element (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>);</pre>
|
1136
|
-
<p>Conveniently adds a null element into <em class="parameter"><code>array</code></em>
|
1137
|
-
</p>
|
1138
|
-
<p>See also: <a class="link" href="json-glib-JSON-Array.html#json-array-add-element" title="json_array_add_element ()"><code class="function">json_array_add_element()</code></a>, <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-NULL:CAPS"><code class="literal">JSON_NODE_NULL</code></a></p>
|
1139
|
-
<div class="refsect3">
|
1140
|
-
<a name="json-array-add-null-element.parameters"></a><h4>Parameters</h4>
|
1141
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1142
|
-
<colgroup>
|
1143
|
-
<col width="150px" class="parameters_name">
|
1144
|
-
<col class="parameters_description">
|
1145
|
-
<col width="200px" class="parameters_annotations">
|
1146
|
-
</colgroup>
|
1147
|
-
<tbody><tr>
|
1148
|
-
<td class="parameter_name"><p>array</p></td>
|
1149
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
1150
|
-
<td class="parameter_annotations"> </td>
|
1151
|
-
</tr></tbody>
|
1152
|
-
</table></div>
|
1153
|
-
</div>
|
1154
|
-
<p class="since">Since: <a class="link" href="ix05.html#api-index-0.8">0.8</a></p>
|
1155
|
-
</div>
|
1156
|
-
<hr>
|
1157
|
-
<div class="refsect2">
|
1158
|
-
<a name="json-array-get-null-element"></a><h3>json_array_get_null_element ()</h3>
|
1159
|
-
<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>
|
1160
|
-
json_array_get_null_element (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>,
|
1161
|
-
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> index_</code></em>);</pre>
|
1162
|
-
<p>Conveniently retrieves whether the element at <em class="parameter"><code>index_</code></em>
|
1163
|
-
is set to null</p>
|
1164
|
-
<p>See also: <a class="link" href="json-glib-JSON-Array.html#json-array-get-element" title="json_array_get_element ()"><code class="function">json_array_get_element()</code></a>, <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-TYPE:CAPS" title="JSON_NODE_TYPE()"><code class="function">JSON_NODE_TYPE()</code></a>, <a class="link" href="json-glib-JSON-Node.html#JSON-NODE-NULL:CAPS"><code class="literal">JSON_NODE_NULL</code></a></p>
|
1165
|
-
<div class="refsect3">
|
1166
|
-
<a name="json-array-get-null-element.parameters"></a><h4>Parameters</h4>
|
1167
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1168
|
-
<colgroup>
|
1169
|
-
<col width="150px" class="parameters_name">
|
1170
|
-
<col class="parameters_description">
|
1171
|
-
<col width="200px" class="parameters_annotations">
|
1172
|
-
</colgroup>
|
1173
|
-
<tbody>
|
1174
|
-
<tr>
|
1175
|
-
<td class="parameter_name"><p>array</p></td>
|
1176
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
1177
|
-
<td class="parameter_annotations"> </td>
|
1178
|
-
</tr>
|
1179
|
-
<tr>
|
1180
|
-
<td class="parameter_name"><p>index_</p></td>
|
1181
|
-
<td class="parameter_description"><p>the index of the element to retrieve</p></td>
|
1182
|
-
<td class="parameter_annotations"> </td>
|
1183
|
-
</tr>
|
1184
|
-
</tbody>
|
1185
|
-
</table></div>
|
1186
|
-
</div>
|
1187
|
-
<div class="refsect3">
|
1188
|
-
<a name="json-array-get-null-element.returns"></a><h4>Returns</h4>
|
1189
|
-
<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 element is null</p>
|
1190
|
-
</div>
|
1191
|
-
<p class="since">Since: <a class="link" href="ix05.html#api-index-0.8">0.8</a></p>
|
1192
|
-
</div>
|
1193
|
-
<hr>
|
1194
|
-
<div class="refsect2">
|
1195
|
-
<a name="json-array-add-object-element"></a><h3>json_array_add_object_element ()</h3>
|
1196
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1197
|
-
json_array_add_object_element (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>,
|
1198
|
-
<em class="parameter"><code><a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="type">JsonObject</span></a> *value</code></em>);</pre>
|
1199
|
-
<p>Conveniently adds an object into <em class="parameter"><code>array</code></em>
|
1200
|
-
. The <em class="parameter"><code>array</code></em>
|
1201
|
-
takes ownership
|
1202
|
-
of the newly added <a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="type">JsonObject</span></a></p>
|
1203
|
-
<p>See also: <a class="link" href="json-glib-JSON-Array.html#json-array-add-element" title="json_array_add_element ()"><code class="function">json_array_add_element()</code></a>, <a class="link" href="json-glib-JSON-Node.html#json-node-take-object" title="json_node_take_object ()"><code class="function">json_node_take_object()</code></a></p>
|
1204
|
-
<div class="refsect3">
|
1205
|
-
<a name="json-array-add-object-element.parameters"></a><h4>Parameters</h4>
|
1206
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1207
|
-
<colgroup>
|
1208
|
-
<col width="150px" class="parameters_name">
|
1209
|
-
<col class="parameters_description">
|
1210
|
-
<col width="200px" class="parameters_annotations">
|
1211
|
-
</colgroup>
|
1212
|
-
<tbody>
|
1213
|
-
<tr>
|
1214
|
-
<td class="parameter_name"><p>array</p></td>
|
1215
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
1216
|
-
<td class="parameter_annotations"> </td>
|
1217
|
-
</tr>
|
1218
|
-
<tr>
|
1219
|
-
<td class="parameter_name"><p>value</p></td>
|
1220
|
-
<td class="parameter_description"><p> a <a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="type">JsonObject</span></a>. </p></td>
|
1221
|
-
<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>
|
1222
|
-
</tr>
|
1223
|
-
</tbody>
|
1224
|
-
</table></div>
|
1225
|
-
</div>
|
1226
|
-
<p class="since">Since: <a class="link" href="ix05.html#api-index-0.8">0.8</a></p>
|
1227
|
-
</div>
|
1228
|
-
<hr>
|
1229
|
-
<div class="refsect2">
|
1230
|
-
<a name="json-array-get-object-element"></a><h3>json_array_get_object_element ()</h3>
|
1231
|
-
<pre class="programlisting"><a class="link" href="json-glib-JSON-Object.html#JsonObject"><span class="returnvalue">JsonObject</span></a> *
|
1232
|
-
json_array_get_object_element (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>,
|
1233
|
-
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> index_</code></em>);</pre>
|
1234
|
-
<p>Conveniently retrieves the object from the element at <em class="parameter"><code>index_</code></em>
|
1235
|
-
|
1236
|
-
inside <em class="parameter"><code>array</code></em>
|
1237
|
-
</p>
|
1238
|
-
<p>See also: <a class="link" href="json-glib-JSON-Array.html#json-array-get-element" title="json_array_get_element ()"><code class="function">json_array_get_element()</code></a>, <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></p>
|
1239
|
-
<div class="refsect3">
|
1240
|
-
<a name="json-array-get-object-element.parameters"></a><h4>Parameters</h4>
|
1241
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1242
|
-
<colgroup>
|
1243
|
-
<col width="150px" class="parameters_name">
|
1244
|
-
<col class="parameters_description">
|
1245
|
-
<col width="200px" class="parameters_annotations">
|
1246
|
-
</colgroup>
|
1247
|
-
<tbody>
|
1248
|
-
<tr>
|
1249
|
-
<td class="parameter_name"><p>array</p></td>
|
1250
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
1251
|
-
<td class="parameter_annotations"> </td>
|
1252
|
-
</tr>
|
1253
|
-
<tr>
|
1254
|
-
<td class="parameter_name"><p>index_</p></td>
|
1255
|
-
<td class="parameter_description"><p>the index of the element to retrieve</p></td>
|
1256
|
-
<td class="parameter_annotations"> </td>
|
1257
|
-
</tr>
|
1258
|
-
</tbody>
|
1259
|
-
</table></div>
|
1260
|
-
</div>
|
1261
|
-
<div class="refsect3">
|
1262
|
-
<a name="json-array-get-object-element.returns"></a><h4>Returns</h4>
|
1263
|
-
<p> the object. </p>
|
1264
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
1265
|
-
</div>
|
1266
|
-
<p class="since">Since: <a class="link" href="ix05.html#api-index-0.8">0.8</a></p>
|
1267
|
-
</div>
|
1268
|
-
<hr>
|
1269
|
-
<div class="refsect2">
|
1270
|
-
<a name="json-array-add-string-element"></a><h3>json_array_add_string_element ()</h3>
|
1271
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1272
|
-
json_array_add_string_element (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>,
|
1273
|
-
<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>
|
1274
|
-
<p>Conveniently adds a string <em class="parameter"><code>value</code></em>
|
1275
|
-
into <em class="parameter"><code>array</code></em>
|
1276
|
-
</p>
|
1277
|
-
<p>See also: <a class="link" href="json-glib-JSON-Array.html#json-array-add-element" title="json_array_add_element ()"><code class="function">json_array_add_element()</code></a>, <a class="link" href="json-glib-JSON-Node.html#json-node-set-string" title="json_node_set_string ()"><code class="function">json_node_set_string()</code></a></p>
|
1278
|
-
<div class="refsect3">
|
1279
|
-
<a name="json-array-add-string-element.parameters"></a><h4>Parameters</h4>
|
1280
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1281
|
-
<colgroup>
|
1282
|
-
<col width="150px" class="parameters_name">
|
1283
|
-
<col class="parameters_description">
|
1284
|
-
<col width="200px" class="parameters_annotations">
|
1285
|
-
</colgroup>
|
1286
|
-
<tbody>
|
1287
|
-
<tr>
|
1288
|
-
<td class="parameter_name"><p>array</p></td>
|
1289
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
1290
|
-
<td class="parameter_annotations"> </td>
|
1291
|
-
</tr>
|
1292
|
-
<tr>
|
1293
|
-
<td class="parameter_name"><p>value</p></td>
|
1294
|
-
<td class="parameter_description"><p>a string value</p></td>
|
1295
|
-
<td class="parameter_annotations"> </td>
|
1296
|
-
</tr>
|
1297
|
-
</tbody>
|
1298
|
-
</table></div>
|
1299
|
-
</div>
|
1300
|
-
<p class="since">Since: <a class="link" href="ix05.html#api-index-0.8">0.8</a></p>
|
1301
|
-
</div>
|
1302
|
-
<hr>
|
1303
|
-
<div class="refsect2">
|
1304
|
-
<a name="json-array-get-string-element"></a><h3>json_array_get_string_element ()</h3>
|
1305
|
-
<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> *
|
1306
|
-
json_array_get_string_element (<em class="parameter"><code><a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> *array</code></em>,
|
1307
|
-
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> index_</code></em>);</pre>
|
1308
|
-
<p>Conveniently retrieves the string value of the element at <em class="parameter"><code>index_</code></em>
|
1309
|
-
|
1310
|
-
inside <em class="parameter"><code>array</code></em>
|
1311
|
-
</p>
|
1312
|
-
<p>See also: <a class="link" href="json-glib-JSON-Array.html#json-array-get-element" title="json_array_get_element ()"><code class="function">json_array_get_element()</code></a>, <a class="link" href="json-glib-JSON-Node.html#json-node-get-string" title="json_node_get_string ()"><code class="function">json_node_get_string()</code></a></p>
|
1313
|
-
<div class="refsect3">
|
1314
|
-
<a name="json-array-get-string-element.parameters"></a><h4>Parameters</h4>
|
1315
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1316
|
-
<colgroup>
|
1317
|
-
<col width="150px" class="parameters_name">
|
1318
|
-
<col class="parameters_description">
|
1319
|
-
<col width="200px" class="parameters_annotations">
|
1320
|
-
</colgroup>
|
1321
|
-
<tbody>
|
1322
|
-
<tr>
|
1323
|
-
<td class="parameter_name"><p>array</p></td>
|
1324
|
-
<td class="parameter_description"><p>a <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a></p></td>
|
1325
|
-
<td class="parameter_annotations"> </td>
|
1326
|
-
</tr>
|
1327
|
-
<tr>
|
1328
|
-
<td class="parameter_name"><p>index_</p></td>
|
1329
|
-
<td class="parameter_description"><p>the index of the element to retrieve</p></td>
|
1330
|
-
<td class="parameter_annotations"> </td>
|
1331
|
-
</tr>
|
1332
|
-
</tbody>
|
1333
|
-
</table></div>
|
1334
|
-
</div>
|
1335
|
-
<div class="refsect3">
|
1336
|
-
<a name="json-array-get-string-element.returns"></a><h4>Returns</h4>
|
1337
|
-
<p> the string value; the returned string is owned by
|
1338
|
-
the <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> and should not be modified or freed</p>
|
1339
|
-
</div>
|
1340
|
-
<p class="since">Since: <a class="link" href="ix05.html#api-index-0.8">0.8</a></p>
|
1341
|
-
</div>
|
1342
|
-
</div>
|
1343
|
-
<div class="refsect1">
|
1344
|
-
<a name="json-glib-JSON-Array.other_details"></a><h2>Types and Values</h2>
|
1345
|
-
<div class="refsect2">
|
1346
|
-
<a name="JsonArray-struct"></a><h3>JsonArray</h3>
|
1347
|
-
<pre class="programlisting">typedef struct _JsonArray JsonArray;</pre>
|
1348
|
-
<p>A JSON array type. The contents of the <a class="link" href="json-glib-JSON-Array.html#JsonArray"><span class="type">JsonArray</span></a> structure are private
|
1349
|
-
and should only be accessed by the provided API</p>
|
1350
|
-
</div>
|
1351
|
-
</div>
|
1352
|
-
</div>
|
1353
|
-
<div class="footer">
|
1354
|
-
<hr>Generated by GTK-Doc V1.25</div>
|
1355
|
-
</body>
|
1356
|
-
</html>
|