clutter 3.2.1-x64-mingw32 → 3.2.2-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. checksums.yaml +5 -5
  2. data/Rakefile +1 -1
  3. data/dependency-check/Rakefile +1 -0
  4. data/vendor/local/bin/json-glib-format.exe +0 -0
  5. data/vendor/local/bin/json-glib-validate.exe +0 -0
  6. data/vendor/local/bin/libclutter-1.0-0.dll +0 -0
  7. data/vendor/local/bin/libcogl-20.dll +0 -0
  8. data/vendor/local/bin/libcogl-pango-20.dll +0 -0
  9. data/vendor/local/bin/libcogl-path-20.dll +0 -0
  10. data/vendor/local/bin/libjson-glib-1.0-0.dll +0 -0
  11. data/vendor/local/include/clutter-1.0/clutter/clutter-enum-types.h +1 -61
  12. data/vendor/local/include/clutter-1.0/clutter/clutter-marshal.h +212 -182
  13. data/vendor/local/include/cogl/cogl-path/cogl-path-enum-types.h +1 -3
  14. data/vendor/local/include/cogl/cogl/cogl-enum-types.h +13 -41
  15. data/vendor/local/include/json-glib-1.0/json-glib/json-enum-types.h +5 -10
  16. data/vendor/local/include/json-glib-1.0/json-glib/json-generator.h +4 -0
  17. data/vendor/local/include/json-glib-1.0/json-glib/json-parser.h +2 -0
  18. data/vendor/local/include/json-glib-1.0/json-glib/json-version-macros.h +16 -0
  19. data/vendor/local/include/json-glib-1.0/json-glib/json-version.h +4 -4
  20. data/vendor/local/lib/girepository-1.0/Json-1.0.typelib +0 -0
  21. data/vendor/local/lib/libclutter-1.0.dll.a +0 -0
  22. data/vendor/local/lib/libclutter-1.0.la +2 -2
  23. data/vendor/local/lib/libcogl-pango.dll.a +0 -0
  24. data/vendor/local/lib/libcogl-pango.la +2 -2
  25. data/vendor/local/lib/libcogl-path.dll.a +0 -0
  26. data/vendor/local/lib/libcogl-path.la +2 -2
  27. data/vendor/local/lib/libcogl.dll.a +0 -0
  28. data/vendor/local/lib/libcogl.la +2 -2
  29. data/vendor/local/lib/libjson-glib-1.0.dll.a +0 -0
  30. data/vendor/local/lib/pkgconfig/cally-1.0.pc +1 -1
  31. data/vendor/local/lib/pkgconfig/clutter-1.0.pc +1 -1
  32. data/vendor/local/lib/pkgconfig/clutter-cogl-1.0.pc +1 -1
  33. data/vendor/local/lib/pkgconfig/clutter-gdk-1.0.pc +1 -1
  34. data/vendor/local/lib/pkgconfig/clutter-win32-1.0.pc +1 -1
  35. data/vendor/local/lib/pkgconfig/cogl-1.0.pc +1 -1
  36. data/vendor/local/lib/pkgconfig/cogl-2.0-experimental.pc +1 -1
  37. data/vendor/local/lib/pkgconfig/cogl-gl-1.0.pc +1 -1
  38. data/vendor/local/lib/pkgconfig/cogl-pango-1.0.pc +1 -1
  39. data/vendor/local/lib/pkgconfig/cogl-pango-2.0-experimental.pc +1 -1
  40. data/vendor/local/lib/pkgconfig/cogl-path-1.0.pc +1 -1
  41. data/vendor/local/lib/pkgconfig/cogl-path-2.0-experimental.pc +1 -1
  42. data/vendor/local/lib/pkgconfig/json-glib-1.0.pc +5 -6
  43. data/vendor/local/libexec/installed-tests/json-glib-1.0/array.exe +0 -0
  44. data/vendor/local/libexec/installed-tests/json-glib-1.0/boxed.exe +0 -0
  45. data/vendor/local/libexec/installed-tests/json-glib-1.0/builder.exe +0 -0
  46. data/vendor/local/libexec/installed-tests/json-glib-1.0/generator.exe +0 -0
  47. data/vendor/local/libexec/installed-tests/json-glib-1.0/gvariant.exe +0 -0
  48. data/vendor/local/libexec/installed-tests/json-glib-1.0/invalid.exe +0 -0
  49. data/vendor/local/libexec/installed-tests/json-glib-1.0/node.exe +0 -0
  50. data/vendor/local/libexec/installed-tests/json-glib-1.0/object.exe +0 -0
  51. data/vendor/local/libexec/installed-tests/json-glib-1.0/parser.exe +0 -0
  52. data/vendor/local/libexec/installed-tests/json-glib-1.0/path.exe +0 -0
  53. data/vendor/local/libexec/installed-tests/json-glib-1.0/reader.exe +0 -0
  54. data/vendor/local/libexec/installed-tests/json-glib-1.0/serialize-complex.exe +0 -0
  55. data/vendor/local/libexec/installed-tests/json-glib-1.0/serialize-full.exe +0 -0
  56. data/vendor/local/libexec/installed-tests/json-glib-1.0/serialize-simple.exe +0 -0
  57. data/vendor/local/libexec/installed-tests/json-glib-1.0/stream-load.json +1 -0
  58. data/vendor/local/share/gir-1.0/Json-1.0.gir +108 -60
  59. data/vendor/local/share/installed-tests/json-glib-1.0/array.test +3 -0
  60. data/vendor/local/share/installed-tests/json-glib-1.0/boxed.test +3 -0
  61. data/vendor/local/share/installed-tests/json-glib-1.0/builder.test +3 -0
  62. data/vendor/local/share/installed-tests/json-glib-1.0/generator.test +3 -0
  63. data/vendor/local/share/installed-tests/json-glib-1.0/gvariant.test +3 -0
  64. data/vendor/local/share/installed-tests/json-glib-1.0/invalid.test +3 -0
  65. data/vendor/local/share/installed-tests/json-glib-1.0/node.test +3 -0
  66. data/vendor/local/share/installed-tests/json-glib-1.0/object.test +3 -0
  67. data/vendor/local/share/installed-tests/json-glib-1.0/parser.test +3 -0
  68. data/vendor/local/share/installed-tests/json-glib-1.0/path.test +3 -0
  69. data/vendor/local/share/installed-tests/json-glib-1.0/reader.test +3 -0
  70. data/vendor/local/share/installed-tests/json-glib-1.0/serialize-complex.test +3 -0
  71. data/vendor/local/share/installed-tests/json-glib-1.0/serialize-full.test +3 -0
  72. data/vendor/local/share/installed-tests/json-glib-1.0/serialize-simple.test +3 -0
  73. data/vendor/local/share/locale/as/LC_MESSAGES/json-glib-1.0.mo +0 -0
  74. data/vendor/local/share/locale/bg/LC_MESSAGES/json-glib-1.0.mo +0 -0
  75. data/vendor/local/share/locale/bn_IN/LC_MESSAGES/json-glib-1.0.mo +0 -0
  76. data/vendor/local/share/locale/bs/LC_MESSAGES/json-glib-1.0.mo +0 -0
  77. data/vendor/local/share/locale/ca/LC_MESSAGES/json-glib-1.0.mo +0 -0
  78. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/json-glib-1.0.mo +0 -0
  79. data/vendor/local/share/locale/cs/LC_MESSAGES/json-glib-1.0.mo +0 -0
  80. data/vendor/local/share/locale/da/LC_MESSAGES/json-glib-1.0.mo +0 -0
  81. data/vendor/local/share/locale/de/LC_MESSAGES/json-glib-1.0.mo +0 -0
  82. data/vendor/local/share/locale/el/LC_MESSAGES/json-glib-1.0.mo +0 -0
  83. data/vendor/local/share/locale/en_GB/LC_MESSAGES/json-glib-1.0.mo +0 -0
  84. data/vendor/local/share/locale/eo/LC_MESSAGES/json-glib-1.0.mo +0 -0
  85. data/vendor/local/share/locale/es/LC_MESSAGES/json-glib-1.0.mo +0 -0
  86. data/vendor/local/share/locale/et/LC_MESSAGES/json-glib-1.0.mo +0 -0
  87. data/vendor/local/share/locale/eu/LC_MESSAGES/json-glib-1.0.mo +0 -0
  88. data/vendor/local/share/locale/fr/LC_MESSAGES/json-glib-1.0.mo +0 -0
  89. data/vendor/local/share/locale/fur/LC_MESSAGES/json-glib-1.0.mo +0 -0
  90. data/vendor/local/share/locale/gl/LC_MESSAGES/json-glib-1.0.mo +0 -0
  91. data/vendor/local/share/locale/he/LC_MESSAGES/json-glib-1.0.mo +0 -0
  92. data/vendor/local/share/locale/hi/LC_MESSAGES/json-glib-1.0.mo +0 -0
  93. data/vendor/local/share/locale/hu/LC_MESSAGES/json-glib-1.0.mo +0 -0
  94. data/vendor/local/share/locale/id/LC_MESSAGES/json-glib-1.0.mo +0 -0
  95. data/vendor/local/share/locale/it/LC_MESSAGES/json-glib-1.0.mo +0 -0
  96. data/vendor/local/share/locale/ja/LC_MESSAGES/json-glib-1.0.mo +0 -0
  97. data/vendor/local/share/locale/ko/LC_MESSAGES/json-glib-1.0.mo +0 -0
  98. data/vendor/local/share/locale/ky/LC_MESSAGES/json-glib-1.0.mo +0 -0
  99. data/vendor/local/share/locale/lt/LC_MESSAGES/json-glib-1.0.mo +0 -0
  100. data/vendor/local/share/locale/lv/LC_MESSAGES/json-glib-1.0.mo +0 -0
  101. data/vendor/local/share/locale/ml/LC_MESSAGES/json-glib-1.0.mo +0 -0
  102. data/vendor/local/share/locale/nb/LC_MESSAGES/json-glib-1.0.mo +0 -0
  103. data/vendor/local/share/locale/ne/LC_MESSAGES/json-glib-1.0.mo +0 -0
  104. data/vendor/local/share/locale/oc/LC_MESSAGES/json-glib-1.0.mo +0 -0
  105. data/vendor/local/share/locale/or/LC_MESSAGES/json-glib-1.0.mo +0 -0
  106. data/vendor/local/share/locale/pa/LC_MESSAGES/json-glib-1.0.mo +0 -0
  107. data/vendor/local/share/locale/pl/LC_MESSAGES/json-glib-1.0.mo +0 -0
  108. data/vendor/local/share/locale/pt/LC_MESSAGES/json-glib-1.0.mo +0 -0
  109. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/json-glib-1.0.mo +0 -0
  110. data/vendor/local/share/locale/ro/LC_MESSAGES/json-glib-1.0.mo +0 -0
  111. data/vendor/local/share/locale/ru/LC_MESSAGES/json-glib-1.0.mo +0 -0
  112. data/vendor/local/share/locale/sk/LC_MESSAGES/json-glib-1.0.mo +0 -0
  113. data/vendor/local/share/locale/sl/LC_MESSAGES/json-glib-1.0.mo +0 -0
  114. data/vendor/local/share/locale/sr/LC_MESSAGES/json-glib-1.0.mo +0 -0
  115. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/json-glib-1.0.mo +0 -0
  116. data/vendor/local/share/locale/sv/LC_MESSAGES/json-glib-1.0.mo +0 -0
  117. data/vendor/local/share/locale/te/LC_MESSAGES/json-glib-1.0.mo +0 -0
  118. data/vendor/local/share/locale/tg/LC_MESSAGES/json-glib-1.0.mo +0 -0
  119. data/vendor/local/share/locale/tr/LC_MESSAGES/json-glib-1.0.mo +0 -0
  120. data/vendor/local/share/locale/ug/LC_MESSAGES/json-glib-1.0.mo +0 -0
  121. data/vendor/local/share/locale/uk/LC_MESSAGES/json-glib-1.0.mo +0 -0
  122. data/vendor/local/share/locale/vi/LC_MESSAGES/json-glib-1.0.mo +0 -0
  123. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/json-glib-1.0.mo +0 -0
  124. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/json-glib-1.0.mo +0 -0
  125. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/json-glib-1.0.mo +0 -0
  126. metadata +43 -66
  127. data/vendor/local/lib/libjson-glib-1.0.la +0 -41
  128. data/vendor/local/share/gtk-doc/html/json-glib/JsonBuilder.html +0 -731
  129. data/vendor/local/share/gtk-doc/html/json-glib/JsonGenerator.html +0 -657
  130. data/vendor/local/share/gtk-doc/html/json-glib/JsonParser.html +0 -1191
  131. data/vendor/local/share/gtk-doc/html/json-glib/JsonPath.html +0 -515
  132. data/vendor/local/share/gtk-doc/html/json-glib/JsonReader.html +0 -1190
  133. data/vendor/local/share/gtk-doc/html/json-glib/annotation-glossary.html +0 -80
  134. data/vendor/local/share/gtk-doc/html/json-glib/ch01.html +0 -40
  135. data/vendor/local/share/gtk-doc/html/json-glib/ch02.html +0 -40
  136. data/vendor/local/share/gtk-doc/html/json-glib/ch03.html +0 -37
  137. data/vendor/local/share/gtk-doc/html/json-glib/ch04.html +0 -32
  138. data/vendor/local/share/gtk-doc/html/json-glib/ch06.html +0 -43
  139. data/vendor/local/share/gtk-doc/html/json-glib/home.png +0 -0
  140. data/vendor/local/share/gtk-doc/html/json-glib/index.html +0 -158
  141. data/vendor/local/share/gtk-doc/html/json-glib/ix01.html +0 -1074
  142. data/vendor/local/share/gtk-doc/html/json-glib/ix02.html +0 -48
  143. data/vendor/local/share/gtk-doc/html/json-glib/ix03.html +0 -55
  144. data/vendor/local/share/gtk-doc/html/json-glib/ix04.html +0 -48
  145. data/vendor/local/share/gtk-doc/html/json-glib/ix05.html +0 -180
  146. data/vendor/local/share/gtk-doc/html/json-glib/ix06.html +0 -115
  147. data/vendor/local/share/gtk-doc/html/json-glib/ix07.html +0 -155
  148. data/vendor/local/share/gtk-doc/html/json-glib/ix08.html +0 -139
  149. data/vendor/local/share/gtk-doc/html/json-glib/ix09.html +0 -66
  150. data/vendor/local/share/gtk-doc/html/json-glib/ix10.html +0 -38
  151. data/vendor/local/share/gtk-doc/html/json-glib/ix11.html +0 -155
  152. data/vendor/local/share/gtk-doc/html/json-glib/json-advanced.html +0 -49
  153. data/vendor/local/share/gtk-doc/html/json-glib/json-base.html +0 -60
  154. data/vendor/local/share/gtk-doc/html/json-glib/json-format-tool.html +0 -83
  155. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Boxed-Types-Serialization.html +0 -493
  156. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-GObject-Serialization.html +0 -387
  157. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Array.html +0 -1356
  158. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-GVariant-Integration.html +0 -322
  159. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Node.html +0 -2240
  160. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-JSON-Object.html +0 -1688
  161. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Serializable-Interface.html +0 -649
  162. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Utility-API.html +0 -158
  163. data/vendor/local/share/gtk-doc/html/json-glib/json-glib-Versioning-information.html +0 -217
  164. data/vendor/local/share/gtk-doc/html/json-glib/json-glib.devhelp2 +0 -343
  165. data/vendor/local/share/gtk-doc/html/json-glib/json-overview.html +0 -41
  166. data/vendor/local/share/gtk-doc/html/json-glib/json-streams.html +0 -66
  167. data/vendor/local/share/gtk-doc/html/json-glib/json-tools.html +0 -44
  168. data/vendor/local/share/gtk-doc/html/json-glib/json-validate-tool.html +0 -71
  169. data/vendor/local/share/gtk-doc/html/json-glib/left-insensitive.png +0 -0
  170. data/vendor/local/share/gtk-doc/html/json-glib/left.png +0 -0
  171. data/vendor/local/share/gtk-doc/html/json-glib/license.html +0 -57
  172. data/vendor/local/share/gtk-doc/html/json-glib/right-insensitive.png +0 -0
  173. data/vendor/local/share/gtk-doc/html/json-glib/right.png +0 -0
  174. data/vendor/local/share/gtk-doc/html/json-glib/style.css +0 -479
  175. data/vendor/local/share/gtk-doc/html/json-glib/tools.html +0 -37
  176. data/vendor/local/share/gtk-doc/html/json-glib/up-insensitive.png +0 -0
  177. data/vendor/local/share/gtk-doc/html/json-glib/up.png +0 -0
  178. data/vendor/local/share/man/man1/json-glib-format.1 +0 -60
  179. data/vendor/local/share/man/man1/json-glib-validate.1 +0 -56
@@ -1,1190 +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>JsonReader: 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="ch02.html" title="Parser">
9
- <link rel="prev" href="JsonParser.html" title="JsonParser">
10
- <link rel="next" href="JsonPath.html" title="JsonPath">
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="#JsonReader.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
19
- <a href="#JsonReader.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties">  <span class="dim">|</span> 
20
- <a href="#JsonReader.properties" class="shortcut">Properties</a></span>
21
- </td>
22
- <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
23
- <td><a accesskey="u" href="ch02.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
24
- <td><a accesskey="p" href="JsonParser.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
25
- <td><a accesskey="n" href="JsonPath.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
26
- </tr></table>
27
- <div class="refentry">
28
- <a name="JsonReader"></a><div class="titlepage"></div>
29
- <div class="refnamediv"><table width="100%"><tr>
30
- <td valign="top">
31
- <h2><span class="refentrytitle"><a name="JsonReader.top_of_page"></a>JsonReader</span></h2>
32
- <p>JsonReader — A cursor-based parser</p>
33
- </td>
34
- <td class="gallery_image" valign="top" align="right"></td>
35
- </tr></table></div>
36
- <div class="refsect1">
37
- <a name="JsonReader.functions"></a><h2>Functions</h2>
38
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
39
- <colgroup>
40
- <col width="150px" class="functions_return">
41
- <col class="functions_name">
42
- </colgroup>
43
- <tbody>
44
- <tr>
45
- <td class="function_type">
46
- <a class="link" href="JsonReader.html" title="JsonReader"><span class="returnvalue">JsonReader</span></a> *
47
- </td>
48
- <td class="function_name">
49
- <a class="link" href="JsonReader.html#json-reader-new" title="json_reader_new ()">json_reader_new</a> <span class="c_punctuation">()</span>
50
- </td>
51
- </tr>
52
- <tr>
53
- <td class="function_type">
54
- <span class="returnvalue">void</span>
55
- </td>
56
- <td class="function_name">
57
- <a class="link" href="JsonReader.html#json-reader-set-root" title="json_reader_set_root ()">json_reader_set_root</a> <span class="c_punctuation">()</span>
58
- </td>
59
- </tr>
60
- <tr>
61
- <td class="function_type">
62
- <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
63
- </td>
64
- <td class="function_name">
65
- <a class="link" href="JsonReader.html#json-reader-read-element" title="json_reader_read_element ()">json_reader_read_element</a> <span class="c_punctuation">()</span>
66
- </td>
67
- </tr>
68
- <tr>
69
- <td class="function_type">
70
- <span class="returnvalue">void</span>
71
- </td>
72
- <td class="function_name">
73
- <a class="link" href="JsonReader.html#json-reader-end-element" title="json_reader_end_element ()">json_reader_end_element</a> <span class="c_punctuation">()</span>
74
- </td>
75
- </tr>
76
- <tr>
77
- <td class="function_type">
78
- <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
79
- </td>
80
- <td class="function_name">
81
- <a class="link" href="JsonReader.html#json-reader-is-array" title="json_reader_is_array ()">json_reader_is_array</a> <span class="c_punctuation">()</span>
82
- </td>
83
- </tr>
84
- <tr>
85
- <td class="function_type">
86
- <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
87
- </td>
88
- <td class="function_name">
89
- <a class="link" href="JsonReader.html#json-reader-count-elements" title="json_reader_count_elements ()">json_reader_count_elements</a> <span class="c_punctuation">()</span>
90
- </td>
91
- </tr>
92
- <tr>
93
- <td class="function_type">
94
- <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
95
- </td>
96
- <td class="function_name">
97
- <a class="link" href="JsonReader.html#json-reader-read-member" title="json_reader_read_member ()">json_reader_read_member</a> <span class="c_punctuation">()</span>
98
- </td>
99
- </tr>
100
- <tr>
101
- <td class="function_type">
102
- <span class="returnvalue">void</span>
103
- </td>
104
- <td class="function_name">
105
- <a class="link" href="JsonReader.html#json-reader-end-member" title="json_reader_end_member ()">json_reader_end_member</a> <span class="c_punctuation">()</span>
106
- </td>
107
- </tr>
108
- <tr>
109
- <td class="function_type">
110
- <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
111
- </td>
112
- <td class="function_name">
113
- <a class="link" href="JsonReader.html#json-reader-is-object" title="json_reader_is_object ()">json_reader_is_object</a> <span class="c_punctuation">()</span>
114
- </td>
115
- </tr>
116
- <tr>
117
- <td class="function_type">
118
- <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
119
- </td>
120
- <td class="function_name">
121
- <a class="link" href="JsonReader.html#json-reader-count-members" title="json_reader_count_members ()">json_reader_count_members</a> <span class="c_punctuation">()</span>
122
- </td>
123
- </tr>
124
- <tr>
125
- <td class="function_type">
126
- <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> **
127
- </td>
128
- <td class="function_name">
129
- <a class="link" href="JsonReader.html#json-reader-list-members" title="json_reader_list_members ()">json_reader_list_members</a> <span class="c_punctuation">()</span>
130
- </td>
131
- </tr>
132
- <tr>
133
- <td class="function_type">const <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
134
- </td>
135
- <td class="function_name">
136
- <a class="link" href="JsonReader.html#json-reader-get-member-name" title="json_reader_get_member_name ()">json_reader_get_member_name</a> <span class="c_punctuation">()</span>
137
- </td>
138
- </tr>
139
- <tr>
140
- <td class="function_type">
141
- <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
142
- </td>
143
- <td class="function_name">
144
- <a class="link" href="JsonReader.html#json-reader-is-value" title="json_reader_is_value ()">json_reader_is_value</a> <span class="c_punctuation">()</span>
145
- </td>
146
- </tr>
147
- <tr>
148
- <td class="function_type">
149
- <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
150
- </td>
151
- <td class="function_name">
152
- <a class="link" href="JsonReader.html#json-reader-get-value" title="json_reader_get_value ()">json_reader_get_value</a> <span class="c_punctuation">()</span>
153
- </td>
154
- </tr>
155
- <tr>
156
- <td class="function_type">
157
- <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="returnvalue">gint64</span></a>
158
- </td>
159
- <td class="function_name">
160
- <a class="link" href="JsonReader.html#json-reader-get-int-value" title="json_reader_get_int_value ()">json_reader_get_int_value</a> <span class="c_punctuation">()</span>
161
- </td>
162
- </tr>
163
- <tr>
164
- <td class="function_type">
165
- <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>
166
- </td>
167
- <td class="function_name">
168
- <a class="link" href="JsonReader.html#json-reader-get-double-value" title="json_reader_get_double_value ()">json_reader_get_double_value</a> <span class="c_punctuation">()</span>
169
- </td>
170
- </tr>
171
- <tr>
172
- <td class="function_type">const <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
173
- </td>
174
- <td class="function_name">
175
- <a class="link" href="JsonReader.html#json-reader-get-string-value" title="json_reader_get_string_value ()">json_reader_get_string_value</a> <span class="c_punctuation">()</span>
176
- </td>
177
- </tr>
178
- <tr>
179
- <td class="function_type">
180
- <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
181
- </td>
182
- <td class="function_name">
183
- <a class="link" href="JsonReader.html#json-reader-get-boolean-value" title="json_reader_get_boolean_value ()">json_reader_get_boolean_value</a> <span class="c_punctuation">()</span>
184
- </td>
185
- </tr>
186
- <tr>
187
- <td class="function_type">
188
- <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
189
- </td>
190
- <td class="function_name">
191
- <a class="link" href="JsonReader.html#json-reader-get-null-value" title="json_reader_get_null_value ()">json_reader_get_null_value</a> <span class="c_punctuation">()</span>
192
- </td>
193
- </tr>
194
- <tr>
195
- <td class="function_type">const <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> *
196
- </td>
197
- <td class="function_name">
198
- <a class="link" href="JsonReader.html#json-reader-get-error" title="json_reader_get_error ()">json_reader_get_error</a> <span class="c_punctuation">()</span>
199
- </td>
200
- </tr>
201
- </tbody>
202
- </table></div>
203
- </div>
204
- <div class="refsect1">
205
- <a name="JsonReader.properties"></a><h2>Properties</h2>
206
- <div class="informaltable"><table class="informaltable" border="0">
207
- <colgroup>
208
- <col width="150px" class="properties_type">
209
- <col width="300px" class="properties_name">
210
- <col width="200px" class="properties_flags">
211
- </colgroup>
212
- <tbody><tr>
213
- <td class="property_type">
214
- <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *</td>
215
- <td class="property_name"><a class="link" href="JsonReader.html#JsonReader--root" title="The “root” property">root</a></td>
216
- <td class="property_flags">Read / Write / Construct</td>
217
- </tr></tbody>
218
- </table></div>
219
- </div>
220
- <div class="refsect1">
221
- <a name="JsonReader.other"></a><h2>Types and Values</h2>
222
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
223
- <colgroup>
224
- <col width="150px" class="name">
225
- <col class="description">
226
- </colgroup>
227
- <tbody>
228
- <tr>
229
- <td class="datatype_keyword">struct</td>
230
- <td class="function_name"><a class="link" href="JsonReader.html#JsonReader-struct" title="struct JsonReader">JsonReader</a></td>
231
- </tr>
232
- <tr>
233
- <td class="datatype_keyword">struct</td>
234
- <td class="function_name"><a class="link" href="JsonReader.html#JsonReaderClass" title="struct JsonReaderClass">JsonReaderClass</a></td>
235
- </tr>
236
- <tr>
237
- <td class="datatype_keyword">enum</td>
238
- <td class="function_name"><a class="link" href="JsonReader.html#JsonReaderError" title="enum JsonReaderError">JsonReaderError</a></td>
239
- </tr>
240
- <tr>
241
- <td class="define_keyword">#define</td>
242
- <td class="function_name"><a class="link" href="JsonReader.html#JSON-READER-ERROR:CAPS" title="JSON_READER_ERROR">JSON_READER_ERROR</a></td>
243
- </tr>
244
- </tbody>
245
- </table></div>
246
- </div>
247
- <div class="refsect1">
248
- <a name="JsonReader.object-hierarchy"></a><h2>Object Hierarchy</h2>
249
- <pre class="screen"> <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
250
- <span class="lineart">╰──</span> JsonReader
251
- </pre>
252
- </div>
253
- <div class="refsect1">
254
- <a name="JsonReader.includes"></a><h2>Includes</h2>
255
- <pre class="synopsis">#include &lt;json-glib/json-glib.h&gt;
256
- </pre>
257
- </div>
258
- <div class="refsect1">
259
- <a name="JsonReader.description"></a><h2>Description</h2>
260
- <p><a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> provides a simple, cursor-based API for parsing a JSON DOM. It
261
- is similar, in spirit, to the XML Reader API.</p>
262
- <p>In case of error, <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> will be set in an error state; all subsequent
263
- calls will simply be ignored until a function that resets the error state is
264
- called, e.g.:</p>
265
- <div class="informalexample">
266
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
267
- <tbody>
268
- <tr>
269
- <td class="listing_lines" align="right"><pre>1
270
- 2
271
- 3
272
- 4
273
- 5
274
- 6
275
- 7
276
- 8
277
- 9
278
- 10</pre></td>
279
- <td class="listing_code"><pre class="programlisting"><span class="comment">// ask for the 7th element; if the element does not exist, the</span>
280
- <span class="comment">// reader will be put in an error state</span>
281
- <span class="function"><a href="JsonReader.html#json-reader-read-element">json_reader_read_element</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">,</span><span class="normal"> </span><span class="number">6</span><span class="symbol">);</span>
282
-
283
- <span class="comment">// in case of error, this will return NULL, otherwise it will</span>
284
- <span class="comment">// return the value of the element</span>
285
- <span class="normal">str </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="JsonReader.html#json-reader-get-string-value">json_reader_get_string_value</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">value</span><span class="symbol">);</span>
286
-
287
- <span class="comment">// this function resets the error state if any was set</span>
288
- <span class="function"><a href="JsonReader.html#json-reader-end-element">json_reader_end_element</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">);</span></pre></td>
289
- </tr>
290
- </tbody>
291
- </table>
292
- </div>
293
-
294
- <p></p>
295
- <p>If you want to detect the error state as soon as possible, you can use
296
- <a class="link" href="JsonReader.html#json-reader-get-error" title="json_reader_get_error ()"><code class="function">json_reader_get_error()</code></a>:</p>
297
- <div class="informalexample">
298
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
299
- <tbody>
300
- <tr>
301
- <td class="listing_lines" align="right"><pre>1
302
- 2
303
- 3
304
- 4
305
- 5
306
- 6
307
- 7</pre></td>
308
- <td class="listing_code"><pre class="programlisting"><span class="comment">// like the example above, but in this case we print out the</span>
309
- <span class="comment">// error immediately</span>
310
- <span class="keyword">if</span><span class="normal"> </span><span class="symbol">(!</span><span class="function"><a href="JsonReader.html#json-reader-read-element">json_reader_read_element</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">,</span><span class="normal"> </span><span class="number">6</span><span class="symbol">))</span>
311
- <span class="normal"> </span><span class="cbracket">{</span>
312
- <span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">GError</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">error </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="JsonReader.html#json-reader-get-error">json_reader_get_error</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">);</span>
313
- <span class="normal"> </span><span class="function"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Unable to read the element: %s"</span><span class="symbol">,</span><span class="normal"> error</span><span class="symbol">-&gt;</span><span class="normal">message</span><span class="symbol">);</span>
314
- <span class="normal"> </span><span class="cbracket">}</span></pre></td>
315
- </tr>
316
- </tbody>
317
- </table>
318
- </div>
319
-
320
- <p></p>
321
- <p><a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> is available since JSON-GLib 0.12.</p>
322
- </div>
323
- <div class="refsect1">
324
- <a name="JsonReader.functions_details"></a><h2>Functions</h2>
325
- <div class="refsect2">
326
- <a name="json-reader-new"></a><h3>json_reader_new ()</h3>
327
- <pre class="programlisting"><a class="link" href="JsonReader.html" title="JsonReader"><span class="returnvalue">JsonReader</span></a> *
328
- json_reader_new (<em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *node</code></em>);</pre>
329
- <p>Creates a new <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a>. You can use this object to read the contents of
330
- the JSON tree starting from <em class="parameter"><code>node</code></em>
331
- </p>
332
- <div class="refsect3">
333
- <a name="json-reader-new.parameters"></a><h4>Parameters</h4>
334
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
335
- <colgroup>
336
- <col width="150px" class="parameters_name">
337
- <col class="parameters_description">
338
- <col width="200px" class="parameters_annotations">
339
- </colgroup>
340
- <tbody><tr>
341
- <td class="parameter_name"><p>node</p></td>
342
- <td class="parameter_description"><p> a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>, or <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
343
- <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
344
- </tr></tbody>
345
- </table></div>
346
- </div>
347
- <div class="refsect3">
348
- <a name="json-reader-new.returns"></a><h4>Returns</h4>
349
- <p> the newly created <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a>. Use <a href="/home/vagrant/ruby-gnome2.win64/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
350
- release the allocated resources when done</p>
351
- </div>
352
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
353
- </div>
354
- <hr>
355
- <div class="refsect2">
356
- <a name="json-reader-set-root"></a><h3>json_reader_set_root ()</h3>
357
- <pre class="programlisting"><span class="returnvalue">void</span>
358
- json_reader_set_root (<em class="parameter"><code><a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> *reader</code></em>,
359
- <em class="parameter"><code><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *root</code></em>);</pre>
360
- <p>Sets the root <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> to be read by <em class="parameter"><code>reader</code></em>
361
- . The <em class="parameter"><code>reader</code></em>
362
- will take
363
- a copy of <em class="parameter"><code>root</code></em>
364
- </p>
365
- <p>If another <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> is currently set as root, it will be replaced.</p>
366
- <div class="refsect3">
367
- <a name="json-reader-set-root.parameters"></a><h4>Parameters</h4>
368
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
369
- <colgroup>
370
- <col width="150px" class="parameters_name">
371
- <col class="parameters_description">
372
- <col width="200px" class="parameters_annotations">
373
- </colgroup>
374
- <tbody>
375
- <tr>
376
- <td class="parameter_name"><p>reader</p></td>
377
- <td class="parameter_description"><p>a <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a></p></td>
378
- <td class="parameter_annotations"> </td>
379
- </tr>
380
- <tr>
381
- <td class="parameter_name"><p>root</p></td>
382
- <td class="parameter_description"><p> a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>. </p></td>
383
- <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
384
- </tr>
385
- </tbody>
386
- </table></div>
387
- </div>
388
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
389
- </div>
390
- <hr>
391
- <div class="refsect2">
392
- <a name="json-reader-read-element"></a><h3>json_reader_read_element ()</h3>
393
- <pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
394
- json_reader_read_element (<em class="parameter"><code><a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> *reader</code></em>,
395
- <em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> index_</code></em>);</pre>
396
- <p>Advances the cursor of <em class="parameter"><code>reader</code></em>
397
- to the element <em class="parameter"><code>index_</code></em>
398
- of the array
399
- or the object at the current position.</p>
400
- <p>You can use the json_reader_get_value* family of functions to retrieve
401
- the value of the element; for instance:</p>
402
- <div class="informalexample">
403
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
404
- <tbody>
405
- <tr>
406
- <td class="listing_lines" align="right"><pre>1
407
- 2</pre></td>
408
- <td class="listing_code"><pre class="programlisting"><span class="function"><a href="JsonReader.html#json-reader-read-element">json_reader_read_element</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">);</span>
409
- <span class="normal">int_value </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="JsonReader.html#json-reader-get-int-value">json_reader_get_int_value</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">);</span></pre></td>
410
- </tr>
411
- </tbody>
412
- </table>
413
- </div>
414
-
415
- <p></p>
416
- <p>After reading the value, <a class="link" href="JsonReader.html#json-reader-end-element" title="json_reader_end_element ()"><code class="function">json_reader_end_element()</code></a> should be called to
417
- reposition the cursor inside the <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a>, e.g.:</p>
418
- <div class="informalexample">
419
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
420
- <tbody>
421
- <tr>
422
- <td class="listing_lines" align="right"><pre>1
423
- 2
424
- 3
425
- 4
426
- 5
427
- 6
428
- 7</pre></td>
429
- <td class="listing_code"><pre class="programlisting"><span class="function"><a href="JsonReader.html#json-reader-read-element">json_reader_read_element</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">);</span>
430
- <span class="normal">str_value </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="JsonReader.html#json-reader-get-string-value">json_reader_get_string_value</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">);</span>
431
- <span class="function"><a href="JsonReader.html#json-reader-end-element">json_reader_end_element</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">);</span>
432
-
433
- <span class="function"><a href="JsonReader.html#json-reader-read-element">json_reader_read_element</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">,</span><span class="normal"> </span><span class="number">2</span><span class="symbol">);</span>
434
- <span class="normal">str_value </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="JsonReader.html#json-reader-get-string-value">json_reader_get_string_value</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">);</span>
435
- <span class="function"><a href="JsonReader.html#json-reader-end-element">json_reader_end_element</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">);</span></pre></td>
436
- </tr>
437
- </tbody>
438
- </table>
439
- </div>
440
-
441
- <p></p>
442
- <p>If <em class="parameter"><code>reader</code></em>
443
- is not currently on an array or an object, or if the <em class="parameter"><code>index_</code></em>
444
- is
445
- bigger than the size of the array or the object, the <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> will be
446
- put in an error state until <a class="link" href="JsonReader.html#json-reader-end-element" title="json_reader_end_element ()"><code class="function">json_reader_end_element()</code></a> is called. This means
447
- that if used conditionally, <a class="link" href="JsonReader.html#json-reader-end-element" title="json_reader_end_element ()"><code class="function">json_reader_end_element()</code></a> must be called on both
448
- code paths:</p>
449
- <div class="informalexample">
450
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
451
- <tbody>
452
- <tr>
453
- <td class="listing_lines" align="right"><pre>1
454
- 2
455
- 3
456
- 4
457
- 5
458
- 6
459
- 7
460
- 8
461
- 9</pre></td>
462
- <td class="listing_code"><pre class="programlisting"><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(!</span><span class="function"><a href="JsonReader.html#json-reader-read-element">json_reader_read_element</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">))</span>
463
- <span class="normal"> </span><span class="cbracket">{</span>
464
- <span class="normal"> </span><span class="function"><a href="JsonReader.html#json-reader-end-element">json_reader_end_element</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">);</span>
465
- <span class="normal"> </span><span class="function"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#g-set-error">g_set_error</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">,</span><span class="normal"> …</span><span class="symbol">);</span>
466
- <span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">;</span>
467
- <span class="normal"> </span><span class="cbracket">}</span>
468
-
469
- <span class="normal">str_value </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="JsonReader.html#json-reader-get-string-value">json_reader_get_string_value</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">);</span>
470
- <span class="function"><a href="JsonReader.html#json-reader-end-element">json_reader_end_element</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">);</span></pre></td>
471
- </tr>
472
- </tbody>
473
- </table>
474
- </div>
475
-
476
- <p></p>
477
- <div class="refsect3">
478
- <a name="json-reader-read-element.parameters"></a><h4>Parameters</h4>
479
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
480
- <colgroup>
481
- <col width="150px" class="parameters_name">
482
- <col class="parameters_description">
483
- <col width="200px" class="parameters_annotations">
484
- </colgroup>
485
- <tbody>
486
- <tr>
487
- <td class="parameter_name"><p>reader</p></td>
488
- <td class="parameter_description"><p>a <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a></p></td>
489
- <td class="parameter_annotations"> </td>
490
- </tr>
491
- <tr>
492
- <td class="parameter_name"><p>index_</p></td>
493
- <td class="parameter_description"><p>the index of the element</p></td>
494
- <td class="parameter_annotations"> </td>
495
- </tr>
496
- </tbody>
497
- </table></div>
498
- </div>
499
- <div class="refsect3">
500
- <a name="json-reader-read-element.returns"></a><h4>Returns</h4>
501
- <p> <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, and <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p>
502
- </div>
503
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
504
- </div>
505
- <hr>
506
- <div class="refsect2">
507
- <a name="json-reader-end-element"></a><h3>json_reader_end_element ()</h3>
508
- <pre class="programlisting"><span class="returnvalue">void</span>
509
- json_reader_end_element (<em class="parameter"><code><a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> *reader</code></em>);</pre>
510
- <p>Moves the cursor back to the previous node after being positioned
511
- inside an array</p>
512
- <p>This function resets the error state of <em class="parameter"><code>reader</code></em>
513
- , if any was set</p>
514
- <div class="refsect3">
515
- <a name="json-reader-end-element.parameters"></a><h4>Parameters</h4>
516
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
517
- <colgroup>
518
- <col width="150px" class="parameters_name">
519
- <col class="parameters_description">
520
- <col width="200px" class="parameters_annotations">
521
- </colgroup>
522
- <tbody><tr>
523
- <td class="parameter_name"><p>reader</p></td>
524
- <td class="parameter_description"><p>a <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a></p></td>
525
- <td class="parameter_annotations"> </td>
526
- </tr></tbody>
527
- </table></div>
528
- </div>
529
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
530
- </div>
531
- <hr>
532
- <div class="refsect2">
533
- <a name="json-reader-is-array"></a><h3>json_reader_is_array ()</h3>
534
- <pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
535
- json_reader_is_array (<em class="parameter"><code><a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> *reader</code></em>);</pre>
536
- <p>Checks whether the <em class="parameter"><code>reader</code></em>
537
- is currently on an array</p>
538
- <div class="refsect3">
539
- <a name="json-reader-is-array.parameters"></a><h4>Parameters</h4>
540
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
541
- <colgroup>
542
- <col width="150px" class="parameters_name">
543
- <col class="parameters_description">
544
- <col width="200px" class="parameters_annotations">
545
- </colgroup>
546
- <tbody><tr>
547
- <td class="parameter_name"><p>reader</p></td>
548
- <td class="parameter_description"><p>a <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a></p></td>
549
- <td class="parameter_annotations"> </td>
550
- </tr></tbody>
551
- </table></div>
552
- </div>
553
- <div class="refsect3">
554
- <a name="json-reader-is-array.returns"></a><h4>Returns</h4>
555
- <p> <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> is on an array, and <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>
556
- otherwise</p>
557
- </div>
558
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
559
- </div>
560
- <hr>
561
- <div class="refsect2">
562
- <a name="json-reader-count-elements"></a><h3>json_reader_count_elements ()</h3>
563
- <pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
564
- json_reader_count_elements (<em class="parameter"><code><a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> *reader</code></em>);</pre>
565
- <p>Counts the elements of the current position, if <em class="parameter"><code>reader</code></em>
566
- is
567
- positioned on an array</p>
568
- <div class="refsect3">
569
- <a name="json-reader-count-elements.parameters"></a><h4>Parameters</h4>
570
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
571
- <colgroup>
572
- <col width="150px" class="parameters_name">
573
- <col class="parameters_description">
574
- <col width="200px" class="parameters_annotations">
575
- </colgroup>
576
- <tbody><tr>
577
- <td class="parameter_name"><p>reader</p></td>
578
- <td class="parameter_description"><p>a <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a></p></td>
579
- <td class="parameter_annotations"> </td>
580
- </tr></tbody>
581
- </table></div>
582
- </div>
583
- <div class="refsect3">
584
- <a name="json-reader-count-elements.returns"></a><h4>Returns</h4>
585
- <p> the number of elements, or -1. In case of failure
586
- the <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> is set in an error state</p>
587
- </div>
588
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
589
- </div>
590
- <hr>
591
- <div class="refsect2">
592
- <a name="json-reader-read-member"></a><h3>json_reader_read_member ()</h3>
593
- <pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
594
- json_reader_read_member (<em class="parameter"><code><a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> *reader</code></em>,
595
- <em class="parameter"><code>const <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *member_name</code></em>);</pre>
596
- <p>Advances the cursor of <em class="parameter"><code>reader</code></em>
597
- to the <em class="parameter"><code>member_name</code></em>
598
- of the object at the
599
- current position.</p>
600
- <p>You can use the json_reader_get_value* family of functions to retrieve
601
- the value of the member; for instance:</p>
602
- <div class="informalexample">
603
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
604
- <tbody>
605
- <tr>
606
- <td class="listing_lines" align="right"><pre>1
607
- 2</pre></td>
608
- <td class="listing_code"><pre class="programlisting"><span class="function"><a href="JsonReader.html#json-reader-read-member">json_reader_read_member</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"width"</span><span class="symbol">);</span>
609
- <span class="normal">width </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="JsonReader.html#json-reader-get-int-value">json_reader_get_int_value</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">);</span></pre></td>
610
- </tr>
611
- </tbody>
612
- </table>
613
- </div>
614
-
615
- <p></p>
616
- <p>After reading the value, <a class="link" href="JsonReader.html#json-reader-end-member" title="json_reader_end_member ()"><code class="function">json_reader_end_member()</code></a> should be called to
617
- reposition the cursor inside the <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a>, e.g.:</p>
618
- <div class="informalexample">
619
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
620
- <tbody>
621
- <tr>
622
- <td class="listing_lines" align="right"><pre>1
623
- 2
624
- 3
625
- 4
626
- 5
627
- 6
628
- 7</pre></td>
629
- <td class="listing_code"><pre class="programlisting"><span class="function"><a href="JsonReader.html#json-reader-read-member">json_reader_read_member</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"author"</span><span class="symbol">);</span>
630
- <span class="normal">author </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="JsonReader.html#json-reader-get-string-value">json_reader_get_string_value</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">);</span>
631
- <span class="function"><a href="JsonReader.html#json-reader-end-member">json_reader_end_member</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">);</span>
632
-
633
- <span class="function"><a href="JsonReader.html#json-reader-read-member">json_reader_read_member</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"title"</span><span class="symbol">);</span>
634
- <span class="normal">title </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="JsonReader.html#json-reader-get-string-value">json_reader_get_string_value</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">);</span>
635
- <span class="function"><a href="JsonReader.html#json-reader-end-member">json_reader_end_member</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">);</span></pre></td>
636
- </tr>
637
- </tbody>
638
- </table>
639
- </div>
640
-
641
- <p></p>
642
- <p>If <em class="parameter"><code>reader</code></em>
643
- is not currently on an object, or if the <em class="parameter"><code>member_name</code></em>
644
- is not
645
- defined in the object, the <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> will be put in an error state until
646
- <a class="link" href="JsonReader.html#json-reader-end-member" title="json_reader_end_member ()"><code class="function">json_reader_end_member()</code></a> is called. This means that if used conditionally,
647
- <a class="link" href="JsonReader.html#json-reader-end-member" title="json_reader_end_member ()"><code class="function">json_reader_end_member()</code></a> must be called on both code paths:</p>
648
- <div class="informalexample">
649
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
650
- <tbody>
651
- <tr>
652
- <td class="listing_lines" align="right"><pre>1
653
- 2
654
- 3
655
- 4
656
- 5
657
- 6
658
- 7
659
- 8
660
- 9</pre></td>
661
- <td class="listing_code"><pre class="programlisting"><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(!</span><span class="function"><a href="JsonReader.html#json-reader-read-member">json_reader_read_member</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"title"</span><span class="symbol">))</span>
662
- <span class="normal"> </span><span class="cbracket">{</span>
663
- <span class="normal"> </span><span class="function"><a href="JsonReader.html#json-reader-end-member">json_reader_end_member</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">);</span>
664
- <span class="normal"> </span><span class="function"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#g-set-error">g_set_error</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">,</span><span class="normal"> …</span><span class="symbol">);</span>
665
- <span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">;</span>
666
- <span class="normal"> </span><span class="cbracket">}</span>
667
-
668
- <span class="normal">str_value </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="JsonReader.html#json-reader-get-string-value">json_reader_get_string_value</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">);</span>
669
- <span class="function"><a href="JsonReader.html#json-reader-end-member">json_reader_end_member</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">reader</span><span class="symbol">);</span></pre></td>
670
- </tr>
671
- </tbody>
672
- </table>
673
- </div>
674
-
675
- <p></p>
676
- <div class="refsect3">
677
- <a name="json-reader-read-member.parameters"></a><h4>Parameters</h4>
678
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
679
- <colgroup>
680
- <col width="150px" class="parameters_name">
681
- <col class="parameters_description">
682
- <col width="200px" class="parameters_annotations">
683
- </colgroup>
684
- <tbody>
685
- <tr>
686
- <td class="parameter_name"><p>reader</p></td>
687
- <td class="parameter_description"><p>a <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a></p></td>
688
- <td class="parameter_annotations"> </td>
689
- </tr>
690
- <tr>
691
- <td class="parameter_name"><p>member_name</p></td>
692
- <td class="parameter_description"><p>the name of the member to read</p></td>
693
- <td class="parameter_annotations"> </td>
694
- </tr>
695
- </tbody>
696
- </table></div>
697
- </div>
698
- <div class="refsect3">
699
- <a name="json-reader-read-member.returns"></a><h4>Returns</h4>
700
- <p> <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, and <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p>
701
- </div>
702
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
703
- </div>
704
- <hr>
705
- <div class="refsect2">
706
- <a name="json-reader-end-member"></a><h3>json_reader_end_member ()</h3>
707
- <pre class="programlisting"><span class="returnvalue">void</span>
708
- json_reader_end_member (<em class="parameter"><code><a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> *reader</code></em>);</pre>
709
- <p>Moves the cursor back to the previous node after being positioned
710
- inside an object</p>
711
- <p>This function resets the error state of <em class="parameter"><code>reader</code></em>
712
- , if any was set</p>
713
- <div class="refsect3">
714
- <a name="json-reader-end-member.parameters"></a><h4>Parameters</h4>
715
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
716
- <colgroup>
717
- <col width="150px" class="parameters_name">
718
- <col class="parameters_description">
719
- <col width="200px" class="parameters_annotations">
720
- </colgroup>
721
- <tbody><tr>
722
- <td class="parameter_name"><p>reader</p></td>
723
- <td class="parameter_description"><p>a <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a></p></td>
724
- <td class="parameter_annotations"> </td>
725
- </tr></tbody>
726
- </table></div>
727
- </div>
728
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
729
- </div>
730
- <hr>
731
- <div class="refsect2">
732
- <a name="json-reader-is-object"></a><h3>json_reader_is_object ()</h3>
733
- <pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
734
- json_reader_is_object (<em class="parameter"><code><a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> *reader</code></em>);</pre>
735
- <p>Checks whether the <em class="parameter"><code>reader</code></em>
736
- is currently on an object</p>
737
- <div class="refsect3">
738
- <a name="json-reader-is-object.parameters"></a><h4>Parameters</h4>
739
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
740
- <colgroup>
741
- <col width="150px" class="parameters_name">
742
- <col class="parameters_description">
743
- <col width="200px" class="parameters_annotations">
744
- </colgroup>
745
- <tbody><tr>
746
- <td class="parameter_name"><p>reader</p></td>
747
- <td class="parameter_description"><p>a <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a></p></td>
748
- <td class="parameter_annotations"> </td>
749
- </tr></tbody>
750
- </table></div>
751
- </div>
752
- <div class="refsect3">
753
- <a name="json-reader-is-object.returns"></a><h4>Returns</h4>
754
- <p> <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> is on an object, and <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>
755
- otherwise</p>
756
- </div>
757
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
758
- </div>
759
- <hr>
760
- <div class="refsect2">
761
- <a name="json-reader-count-members"></a><h3>json_reader_count_members ()</h3>
762
- <pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
763
- json_reader_count_members (<em class="parameter"><code><a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> *reader</code></em>);</pre>
764
- <p>Counts the members of the current position, if <em class="parameter"><code>reader</code></em>
765
- is
766
- positioned on an object</p>
767
- <div class="refsect3">
768
- <a name="json-reader-count-members.parameters"></a><h4>Parameters</h4>
769
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
770
- <colgroup>
771
- <col width="150px" class="parameters_name">
772
- <col class="parameters_description">
773
- <col width="200px" class="parameters_annotations">
774
- </colgroup>
775
- <tbody><tr>
776
- <td class="parameter_name"><p>reader</p></td>
777
- <td class="parameter_description"><p>a <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a></p></td>
778
- <td class="parameter_annotations"> </td>
779
- </tr></tbody>
780
- </table></div>
781
- </div>
782
- <div class="refsect3">
783
- <a name="json-reader-count-members.returns"></a><h4>Returns</h4>
784
- <p> the number of members, or -1. In case of failure
785
- the <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> is set in an error state</p>
786
- </div>
787
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
788
- </div>
789
- <hr>
790
- <div class="refsect2">
791
- <a name="json-reader-list-members"></a><h3>json_reader_list_members ()</h3>
792
- <pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> **
793
- json_reader_list_members (<em class="parameter"><code><a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> *reader</code></em>);</pre>
794
- <p>Retrieves a list of member names from the current position, if <em class="parameter"><code>reader</code></em>
795
-
796
- is positioned on an object.</p>
797
- <div class="refsect3">
798
- <a name="json-reader-list-members.parameters"></a><h4>Parameters</h4>
799
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
800
- <colgroup>
801
- <col width="150px" class="parameters_name">
802
- <col class="parameters_description">
803
- <col width="200px" class="parameters_annotations">
804
- </colgroup>
805
- <tbody><tr>
806
- <td class="parameter_name"><p>reader</p></td>
807
- <td class="parameter_description"><p>a <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a></p></td>
808
- <td class="parameter_annotations"> </td>
809
- </tr></tbody>
810
- </table></div>
811
- </div>
812
- <div class="refsect3">
813
- <a name="json-reader-list-members.returns"></a><h4>Returns</h4>
814
- <p> a newly allocated, <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated
815
- array of strings holding the members name. Use <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strfreev"><code class="function">g_strfreev()</code></a> when
816
- done. </p>
817
- <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
818
- </div>
819
- <p class="since">Since: <a class="link" href="ix08.html#api-index-0.14">0.14</a></p>
820
- </div>
821
- <hr>
822
- <div class="refsect2">
823
- <a name="json-reader-get-member-name"></a><h3>json_reader_get_member_name ()</h3>
824
- <pre class="programlisting">const <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
825
- json_reader_get_member_name (<em class="parameter"><code><a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> *reader</code></em>);</pre>
826
- <p>Retrieves the name of the current member.</p>
827
- <div class="refsect3">
828
- <a name="json-reader-get-member-name.parameters"></a><h4>Parameters</h4>
829
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
830
- <colgroup>
831
- <col width="150px" class="parameters_name">
832
- <col class="parameters_description">
833
- <col width="200px" class="parameters_annotations">
834
- </colgroup>
835
- <tbody><tr>
836
- <td class="parameter_name"><p>reader</p></td>
837
- <td class="parameter_description"><p>a <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a></p></td>
838
- <td class="parameter_annotations"> </td>
839
- </tr></tbody>
840
- </table></div>
841
- </div>
842
- <div class="refsect3">
843
- <a name="json-reader-get-member-name.returns"></a><h4>Returns</h4>
844
- <p> the name of the member, or <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p>
845
- <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
846
- </div>
847
- <p class="since">Since: <a class="link" href="ix08.html#api-index-0.14">0.14</a></p>
848
- </div>
849
- <hr>
850
- <div class="refsect2">
851
- <a name="json-reader-is-value"></a><h3>json_reader_is_value ()</h3>
852
- <pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
853
- json_reader_is_value (<em class="parameter"><code><a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> *reader</code></em>);</pre>
854
- <p>Checks whether the <em class="parameter"><code>reader</code></em>
855
- is currently on a value</p>
856
- <div class="refsect3">
857
- <a name="json-reader-is-value.parameters"></a><h4>Parameters</h4>
858
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
859
- <colgroup>
860
- <col width="150px" class="parameters_name">
861
- <col class="parameters_description">
862
- <col width="200px" class="parameters_annotations">
863
- </colgroup>
864
- <tbody><tr>
865
- <td class="parameter_name"><p>reader</p></td>
866
- <td class="parameter_description"><p>a <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a></p></td>
867
- <td class="parameter_annotations"> </td>
868
- </tr></tbody>
869
- </table></div>
870
- </div>
871
- <div class="refsect3">
872
- <a name="json-reader-is-value.returns"></a><h4>Returns</h4>
873
- <p> <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> is on a value, and <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>
874
- otherwise</p>
875
- </div>
876
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
877
- </div>
878
- <hr>
879
- <div class="refsect2">
880
- <a name="json-reader-get-value"></a><h3>json_reader_get_value ()</h3>
881
- <pre class="programlisting"><a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="returnvalue">JsonNode</span></a> *
882
- json_reader_get_value (<em class="parameter"><code><a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> *reader</code></em>);</pre>
883
- <p>Retrieves the <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> of the current position of <em class="parameter"><code>reader</code></em>
884
- </p>
885
- <div class="refsect3">
886
- <a name="json-reader-get-value.parameters"></a><h4>Parameters</h4>
887
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
888
- <colgroup>
889
- <col width="150px" class="parameters_name">
890
- <col class="parameters_description">
891
- <col width="200px" class="parameters_annotations">
892
- </colgroup>
893
- <tbody><tr>
894
- <td class="parameter_name"><p>reader</p></td>
895
- <td class="parameter_description"><p>a <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a></p></td>
896
- <td class="parameter_annotations"> </td>
897
- </tr></tbody>
898
- </table></div>
899
- </div>
900
- <div class="refsect3">
901
- <a name="json-reader-get-value.returns"></a><h4>Returns</h4>
902
- <p> a <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a>, or <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. The returned node
903
- is owned by the <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> and it should not be modified or freed
904
- directly. </p>
905
- <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
906
- </div>
907
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
908
- </div>
909
- <hr>
910
- <div class="refsect2">
911
- <a name="json-reader-get-int-value"></a><h3>json_reader_get_int_value ()</h3>
912
- <pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint64"><span class="returnvalue">gint64</span></a>
913
- json_reader_get_int_value (<em class="parameter"><code><a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> *reader</code></em>);</pre>
914
- <p>Retrieves the integer value of the current position of <em class="parameter"><code>reader</code></em>
915
- </p>
916
- <div class="refsect3">
917
- <a name="json-reader-get-int-value.parameters"></a><h4>Parameters</h4>
918
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
919
- <colgroup>
920
- <col width="150px" class="parameters_name">
921
- <col class="parameters_description">
922
- <col width="200px" class="parameters_annotations">
923
- </colgroup>
924
- <tbody><tr>
925
- <td class="parameter_name"><p>reader</p></td>
926
- <td class="parameter_description"><p>a <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a></p></td>
927
- <td class="parameter_annotations"> </td>
928
- </tr></tbody>
929
- </table></div>
930
- </div>
931
- <div class="refsect3">
932
- <a name="json-reader-get-int-value.returns"></a><h4>Returns</h4>
933
- <p> the integer value</p>
934
- </div>
935
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
936
- </div>
937
- <hr>
938
- <div class="refsect2">
939
- <a name="json-reader-get-double-value"></a><h3>json_reader_get_double_value ()</h3>
940
- <pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="returnvalue">gdouble</span></a>
941
- json_reader_get_double_value (<em class="parameter"><code><a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> *reader</code></em>);</pre>
942
- <p>Retrieves the floating point value of the current position of <em class="parameter"><code>reader</code></em>
943
- </p>
944
- <div class="refsect3">
945
- <a name="json-reader-get-double-value.parameters"></a><h4>Parameters</h4>
946
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
947
- <colgroup>
948
- <col width="150px" class="parameters_name">
949
- <col class="parameters_description">
950
- <col width="200px" class="parameters_annotations">
951
- </colgroup>
952
- <tbody><tr>
953
- <td class="parameter_name"><p>reader</p></td>
954
- <td class="parameter_description"><p>a <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a></p></td>
955
- <td class="parameter_annotations"> </td>
956
- </tr></tbody>
957
- </table></div>
958
- </div>
959
- <div class="refsect3">
960
- <a name="json-reader-get-double-value.returns"></a><h4>Returns</h4>
961
- <p> the floating point value</p>
962
- </div>
963
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
964
- </div>
965
- <hr>
966
- <div class="refsect2">
967
- <a name="json-reader-get-string-value"></a><h3>json_reader_get_string_value ()</h3>
968
- <pre class="programlisting">const <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
969
- json_reader_get_string_value (<em class="parameter"><code><a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> *reader</code></em>);</pre>
970
- <p>Retrieves the string value of the current position of <em class="parameter"><code>reader</code></em>
971
- </p>
972
- <div class="refsect3">
973
- <a name="json-reader-get-string-value.parameters"></a><h4>Parameters</h4>
974
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
975
- <colgroup>
976
- <col width="150px" class="parameters_name">
977
- <col class="parameters_description">
978
- <col width="200px" class="parameters_annotations">
979
- </colgroup>
980
- <tbody><tr>
981
- <td class="parameter_name"><p>reader</p></td>
982
- <td class="parameter_description"><p>a <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a></p></td>
983
- <td class="parameter_annotations"> </td>
984
- </tr></tbody>
985
- </table></div>
986
- </div>
987
- <div class="refsect3">
988
- <a name="json-reader-get-string-value.returns"></a><h4>Returns</h4>
989
- <p> the string value</p>
990
- </div>
991
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
992
- </div>
993
- <hr>
994
- <div class="refsect2">
995
- <a name="json-reader-get-boolean-value"></a><h3>json_reader_get_boolean_value ()</h3>
996
- <pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
997
- json_reader_get_boolean_value (<em class="parameter"><code><a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> *reader</code></em>);</pre>
998
- <p>Retrieves the boolean value of the current position of <em class="parameter"><code>reader</code></em>
999
- </p>
1000
- <div class="refsect3">
1001
- <a name="json-reader-get-boolean-value.parameters"></a><h4>Parameters</h4>
1002
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
1003
- <colgroup>
1004
- <col width="150px" class="parameters_name">
1005
- <col class="parameters_description">
1006
- <col width="200px" class="parameters_annotations">
1007
- </colgroup>
1008
- <tbody><tr>
1009
- <td class="parameter_name"><p>reader</p></td>
1010
- <td class="parameter_description"><p>a <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a></p></td>
1011
- <td class="parameter_annotations"> </td>
1012
- </tr></tbody>
1013
- </table></div>
1014
- </div>
1015
- <div class="refsect3">
1016
- <a name="json-reader-get-boolean-value.returns"></a><h4>Returns</h4>
1017
- <p> the boolean value</p>
1018
- </div>
1019
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
1020
- </div>
1021
- <hr>
1022
- <div class="refsect2">
1023
- <a name="json-reader-get-null-value"></a><h3>json_reader_get_null_value ()</h3>
1024
- <pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1025
- json_reader_get_null_value (<em class="parameter"><code><a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> *reader</code></em>);</pre>
1026
- <p>Checks whether the value of the current position of <em class="parameter"><code>reader</code></em>
1027
- is 'null'</p>
1028
- <div class="refsect3">
1029
- <a name="json-reader-get-null-value.parameters"></a><h4>Parameters</h4>
1030
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
1031
- <colgroup>
1032
- <col width="150px" class="parameters_name">
1033
- <col class="parameters_description">
1034
- <col width="200px" class="parameters_annotations">
1035
- </colgroup>
1036
- <tbody><tr>
1037
- <td class="parameter_name"><p>reader</p></td>
1038
- <td class="parameter_description"><p>a <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a></p></td>
1039
- <td class="parameter_annotations"> </td>
1040
- </tr></tbody>
1041
- </table></div>
1042
- </div>
1043
- <div class="refsect3">
1044
- <a name="json-reader-get-null-value.returns"></a><h4>Returns</h4>
1045
- <p> <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if 'null' is set, and <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p>
1046
- </div>
1047
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
1048
- </div>
1049
- <hr>
1050
- <div class="refsect2">
1051
- <a name="json-reader-get-error"></a><h3>json_reader_get_error ()</h3>
1052
- <pre class="programlisting">const <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="returnvalue">GError</span></a> *
1053
- json_reader_get_error (<em class="parameter"><code><a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> *reader</code></em>);</pre>
1054
- <p>Retrieves the <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> currently set on <em class="parameter"><code>reader</code></em>
1055
- , if the <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a>
1056
- is in error state</p>
1057
- <div class="refsect3">
1058
- <a name="json-reader-get-error.parameters"></a><h4>Parameters</h4>
1059
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
1060
- <colgroup>
1061
- <col width="150px" class="parameters_name">
1062
- <col class="parameters_description">
1063
- <col width="200px" class="parameters_annotations">
1064
- </colgroup>
1065
- <tbody><tr>
1066
- <td class="parameter_name"><p>reader</p></td>
1067
- <td class="parameter_description"><p>a <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a></p></td>
1068
- <td class="parameter_annotations"> </td>
1069
- </tr></tbody>
1070
- </table></div>
1071
- </div>
1072
- <div class="refsect3">
1073
- <a name="json-reader-get-error.returns"></a><h4>Returns</h4>
1074
- <p> the pointer to the error, or <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p>
1075
- <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
1076
- </div>
1077
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
1078
- </div>
1079
- </div>
1080
- <div class="refsect1">
1081
- <a name="JsonReader.other_details"></a><h2>Types and Values</h2>
1082
- <div class="refsect2">
1083
- <a name="JsonReader-struct"></a><h3>struct JsonReader</h3>
1084
- <pre class="programlisting">struct JsonReader;</pre>
1085
- <p>The <code class="literal">JsonReader</code> structure contains only private data and should
1086
- be accessed using the provided API</p>
1087
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
1088
- </div>
1089
- <hr>
1090
- <div class="refsect2">
1091
- <a name="JsonReaderClass"></a><h3>struct JsonReaderClass</h3>
1092
- <pre class="programlisting">struct JsonReaderClass {
1093
- };
1094
- </pre>
1095
- <p>The <code class="literal">JsonReaderClass</code> structure contains only private data</p>
1096
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
1097
- </div>
1098
- <hr>
1099
- <div class="refsect2">
1100
- <a name="JsonReaderError"></a><h3>enum JsonReaderError</h3>
1101
- <p>Error codes enumeration for <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> errors</p>
1102
- <div class="refsect3">
1103
- <a name="JsonReaderError.members"></a><h4>Members</h4>
1104
- <div class="informaltable"><table class="informaltable" width="100%" border="0">
1105
- <colgroup>
1106
- <col width="300px" class="enum_members_name">
1107
- <col class="enum_members_description">
1108
- <col width="200px" class="enum_members_annotations">
1109
- </colgroup>
1110
- <tbody>
1111
- <tr>
1112
- <td class="enum_member_name"><p><a name="JSON-READER-ERROR-NO-ARRAY:CAPS"></a>JSON_READER_ERROR_NO_ARRAY</p></td>
1113
- <td class="enum_member_description">
1114
- <p>No array found at the current position</p>
1115
- </td>
1116
- <td class="enum_member_annotations"> </td>
1117
- </tr>
1118
- <tr>
1119
- <td class="enum_member_name"><p><a name="JSON-READER-ERROR-INVALID-INDEX:CAPS"></a>JSON_READER_ERROR_INVALID_INDEX</p></td>
1120
- <td class="enum_member_description">
1121
- <p>Index out of bounds</p>
1122
- </td>
1123
- <td class="enum_member_annotations"> </td>
1124
- </tr>
1125
- <tr>
1126
- <td class="enum_member_name"><p><a name="JSON-READER-ERROR-NO-OBJECT:CAPS"></a>JSON_READER_ERROR_NO_OBJECT</p></td>
1127
- <td class="enum_member_description">
1128
- <p>No object found at the current position</p>
1129
- </td>
1130
- <td class="enum_member_annotations"> </td>
1131
- </tr>
1132
- <tr>
1133
- <td class="enum_member_name"><p><a name="JSON-READER-ERROR-INVALID-MEMBER:CAPS"></a>JSON_READER_ERROR_INVALID_MEMBER</p></td>
1134
- <td class="enum_member_description">
1135
- <p>Member not found</p>
1136
- </td>
1137
- <td class="enum_member_annotations"> </td>
1138
- </tr>
1139
- <tr>
1140
- <td class="enum_member_name"><p><a name="JSON-READER-ERROR-INVALID-NODE:CAPS"></a>JSON_READER_ERROR_INVALID_NODE</p></td>
1141
- <td class="enum_member_description">
1142
- <p>No valid node found at the current position</p>
1143
- </td>
1144
- <td class="enum_member_annotations"> </td>
1145
- </tr>
1146
- <tr>
1147
- <td class="enum_member_name"><p><a name="JSON-READER-ERROR-NO-VALUE:CAPS"></a>JSON_READER_ERROR_NO_VALUE</p></td>
1148
- <td class="enum_member_description">
1149
- <p>The node at the current position does not
1150
- hold a value</p>
1151
- </td>
1152
- <td class="enum_member_annotations"> </td>
1153
- </tr>
1154
- <tr>
1155
- <td class="enum_member_name"><p><a name="JSON-READER-ERROR-INVALID-TYPE:CAPS"></a>JSON_READER_ERROR_INVALID_TYPE</p></td>
1156
- <td class="enum_member_description">
1157
- <p>The node at the current position does not
1158
- hold a value of the desired type</p>
1159
- </td>
1160
- <td class="enum_member_annotations"> </td>
1161
- </tr>
1162
- </tbody>
1163
- </table></div>
1164
- </div>
1165
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
1166
- </div>
1167
- <hr>
1168
- <div class="refsect2">
1169
- <a name="JSON-READER-ERROR:CAPS"></a><h3>JSON_READER_ERROR</h3>
1170
- <pre class="programlisting">#define JSON_READER_ERROR (json_reader_error_quark ())
1171
- </pre>
1172
- <p>Error domain for <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> errors</p>
1173
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
1174
- </div>
1175
- </div>
1176
- <div class="refsect1">
1177
- <a name="JsonReader.property-details"></a><h2>Property Details</h2>
1178
- <div class="refsect2">
1179
- <a name="JsonReader--root"></a><h3>The <code class="literal">“root”</code> property</h3>
1180
- <pre class="programlisting"> “root” <a class="link" href="json-glib-JSON-Node.html#JsonNode"><span class="type">JsonNode</span></a> *</pre>
1181
- <p>The root of the JSON tree that the <a class="link" href="JsonReader.html" title="JsonReader"><span class="type">JsonReader</span></a> should read.</p>
1182
- <p>Flags: Read / Write / Construct</p>
1183
- <p class="since">Since: <a class="link" href="ix07.html#api-index-0.12">0.12</a></p>
1184
- </div>
1185
- </div>
1186
- </div>
1187
- <div class="footer">
1188
- <hr>Generated by GTK-Doc V1.25</div>
1189
- </body>
1190
- </html>