1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 5 <meta http-equiv="X-UA-Compatible" content="IE=9"/> 6 <title>json-c: /home/erh/json-c-0.15/json_types.h File Reference</title> 7 <link href="tabs.css" rel="stylesheet" type="text/css"/> 8 <script type="text/javascript" src="jquery.js"></script> 9 <script type="text/javascript" src="dynsections.js"></script> 10 <link href="doxygen.css" rel="stylesheet" type="text/css" /> 11 </head> 12 <body> 13 <div id="top"><!-- do not remove this div, it is closed by doxygen! --> 14 <div id="titlearea"> 15 <table cellspacing="0" cellpadding="0"> 16 <tbody> 17 <tr style="height: 56px;"> 18 <td style="padding-left: 0.5em;"> 19 <div id="projectname">json-c 20  <span id="projectnumber">0.15</span> 21 </div> 22 </td> 23 </tr> 24 </tbody> 25 </table> 26 </div> 27 <!-- end header part --> 28 <!-- Generated by Doxygen 1.8.2 --> 29 <div id="navrow1" class="tabs"> 30 <ul class="tablist"> 31 <li><a href="index.html"><span>Main Page</span></a></li> 32 <li><a href="pages.html"><span>Related Pages</span></a></li> 33 <li><a href="annotated.html"><span>Data Structures</span></a></li> 34 <li class="current"><a href="files.html"><span>Files</span></a></li> 35 </ul> 36 </div> 37 <div id="navrow2" class="tabs2"> 38 <ul class="tablist"> 39 <li><a href="files.html"><span>File List</span></a></li> 40 <li><a href="globals.html"><span>Globals</span></a></li> 41 </ul> 42 </div> 43 <div id="nav-path" class="navpath"> 44 <ul> 45 <li class="navelem"><a class="el" href="dir_71f13e590eb9d766c31051438785ada5.html">json-c-0.15</a></li> </ul> 46 </div> 47 </div><!-- top --> 48 <div class="header"> 49 <div class="summary"> 50 <a href="#nested-classes">Data Structures</a> | 51 <a href="#define-members">Macros</a> | 52 <a href="#typedef-members">Typedefs</a> | 53 <a href="#enum-members">Enumerations</a> </div> 54 <div class="headertitle"> 55 <div class="title">json_types.h File Reference</div> </div> 56 </div><!--header--> 57 <div class="contents"> 58 59 <p>Basic types used in a few places in json-c, but you should include "json_object.h" instead. 60 <a href="#details">More...</a></p> 61 <table class="memberdecls"> 62 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a> 63 Data Structures</h2></td></tr> 64 <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structjson__object__iter.html">json_object_iter</a></td></tr> 65 <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> 66 </table><table class="memberdecls"> 67 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> 68 Macros</h2></td></tr> 69 <tr class="memitem:a2a31d5c00f3a4712f2d5d62aee66344e"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="json__types_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a>   extern</td></tr> 70 <tr class="separator:a2a31d5c00f3a4712f2d5d62aee66344e"><td class="memSeparator" colspan="2"> </td></tr> 71 </table><table class="memberdecls"> 72 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a> 73 Typedefs</h2></td></tr> 74 <tr class="memitem:af88126730e765f2068968f4b16fd074f"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structjson__object__iter.html">json_object_iter</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="json__types_8h.html#af88126730e765f2068968f4b16fd074f">json_object_iter</a></td></tr> 75 <tr class="separator:af88126730e765f2068968f4b16fd074f"><td class="memSeparator" colspan="2"> </td></tr> 76 <tr class="memitem:a81f02022906fafc71eb9197049f07f73"><td class="memItemLeft" align="right" valign="top">typedef int </td><td class="memItemRight" valign="bottom"><a class="el" href="json__types_8h.html#a81f02022906fafc71eb9197049f07f73">json_bool</a></td></tr> 77 <tr class="separator:a81f02022906fafc71eb9197049f07f73"><td class="memSeparator" colspan="2"> </td></tr> 78 <tr class="memitem:af27907ced0f5a43409ad96430fe0f914"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="json__types_8h.html#af27907ced0f5a43409ad96430fe0f914">json_object</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="json__types_8h.html#af27907ced0f5a43409ad96430fe0f914">json_object</a></td></tr> 79 <tr class="memdesc:af27907ced0f5a43409ad96430fe0f914"><td class="mdescLeft"> </td><td class="mdescRight">The core type for all type of JSON objects handled by json-c. <a href="#af27907ced0f5a43409ad96430fe0f914"></a><br/></td></tr> 80 <tr class="separator:af27907ced0f5a43409ad96430fe0f914"><td class="memSeparator" colspan="2"> </td></tr> 81 <tr class="memitem:aa647d7c567a06abe1a1a511f6d6860e4"><td class="memItemLeft" align="right" valign="top">typedef void( </td><td class="memItemRight" valign="bottom"><a class="el" href="json__types_8h.html#aa647d7c567a06abe1a1a511f6d6860e4">json_object_delete_fn</a> )(struct <a class="el" href="json__types_8h.html#af27907ced0f5a43409ad96430fe0f914">json_object</a> *jso, void *userdata)</td></tr> 82 <tr class="separator:aa647d7c567a06abe1a1a511f6d6860e4"><td class="memSeparator" colspan="2"> </td></tr> 83 <tr class="memitem:af84078100a9025df418f31626ea866fa"><td class="memItemLeft" align="right" valign="top">typedef int( </td><td class="memItemRight" valign="bottom"><a class="el" href="json__types_8h.html#af84078100a9025df418f31626ea866fa">json_object_to_json_string_fn</a> )(struct <a class="el" href="json__types_8h.html#af27907ced0f5a43409ad96430fe0f914">json_object</a> *jso, struct <a class="el" href="structprintbuf.html">printbuf</a> *pb, int level, int flags)</td></tr> 84 <tr class="separator:af84078100a9025df418f31626ea866fa"><td class="memSeparator" colspan="2"> </td></tr> 85 <tr class="memitem:aba5eff84f8638d22f50403175f270c96"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="json__types_8h.html#ac75c61993722a9b8aaa44704072ec06c">json_type</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="json__types_8h.html#aba5eff84f8638d22f50403175f270c96">json_type</a></td></tr> 86 <tr class="separator:aba5eff84f8638d22f50403175f270c96"><td class="memSeparator" colspan="2"> </td></tr> 87 </table><table class="memberdecls"> 88 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a> 89 Enumerations</h2></td></tr> 90 <tr class="memitem:ac75c61993722a9b8aaa44704072ec06c"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="json__types_8h.html#ac75c61993722a9b8aaa44704072ec06c">json_type</a> { <br/> 91   <a class="el" href="json__types_8h.html#ac75c61993722a9b8aaa44704072ec06ca127e62d156e13517471fcde3378979c1">json_type_null</a>, 92 <a class="el" href="json__types_8h.html#ac75c61993722a9b8aaa44704072ec06ca5d15299e90dbb9935ff6d3e2c22a285c">json_type_boolean</a>, 93 <a class="el" href="json__types_8h.html#ac75c61993722a9b8aaa44704072ec06cac6ac2d9a16577d00210fea64d16b47cd">json_type_double</a>, 94 <a class="el" href="json__types_8h.html#ac75c61993722a9b8aaa44704072ec06ca7bf325c213b43c5f970ae2d4443ab956">json_type_int</a>, 95 <br/> 96   <a class="el" href="json__types_8h.html#ac75c61993722a9b8aaa44704072ec06cac966c8008f0b2c07da59ee8a60ad440f">json_type_object</a>, 97 <a class="el" href="json__types_8h.html#ac75c61993722a9b8aaa44704072ec06cae536c8c9da4648e6b9348abddde6113c">json_type_array</a>, 98 <a class="el" href="json__types_8h.html#ac75c61993722a9b8aaa44704072ec06cac9f56e57c09245522d764015a054faa6">json_type_string</a> 99 <br/> 100 }</td></tr> 101 <tr class="separator:ac75c61993722a9b8aaa44704072ec06c"><td class="memSeparator" colspan="2"> </td></tr> 102 </table> 103 <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> 104 <div class="textblock"><p>Basic types used in a few places in json-c, but you should include "json_object.h" instead. </p> 105 </div><h2 class="groupheader">Macro Definition Documentation</h2> 106 <a class="anchor" id="a2a31d5c00f3a4712f2d5d62aee66344e"></a> 107 <div class="memitem"> 108 <div class="memproto"> 109 <table class="memname"> 110 <tr> 111 <td class="memname">#define JSON_EXPORT   extern</td> 112 </tr> 113 </table> 114 </div><div class="memdoc"> 115 116 </div> 117 </div> 118 <h2 class="groupheader">Typedef Documentation</h2> 119 <a class="anchor" id="a81f02022906fafc71eb9197049f07f73"></a> 120 <div class="memitem"> 121 <div class="memproto"> 122 <table class="memname"> 123 <tr> 124 <td class="memname">typedef int <a class="el" href="json__types_8h.html#a81f02022906fafc71eb9197049f07f73">json_bool</a></td> 125 </tr> 126 </table> 127 </div><div class="memdoc"> 128 129 </div> 130 </div> 131 <a class="anchor" id="af27907ced0f5a43409ad96430fe0f914"></a> 132 <div class="memitem"> 133 <div class="memproto"> 134 <table class="memname"> 135 <tr> 136 <td class="memname">typedef struct <a class="el" href="json__types_8h.html#af27907ced0f5a43409ad96430fe0f914">json_object</a> <a class="el" href="json__types_8h.html#af27907ced0f5a43409ad96430fe0f914">json_object</a></td> 137 </tr> 138 </table> 139 </div><div class="memdoc"> 140 141 <p>The core type for all type of JSON objects handled by json-c. </p> 142 143 </div> 144 </div> 145 <a class="anchor" id="aa647d7c567a06abe1a1a511f6d6860e4"></a> 146 <div class="memitem"> 147 <div class="memproto"> 148 <table class="memname"> 149 <tr> 150 <td class="memname">typedef void( json_object_delete_fn)(struct <a class="el" href="json__types_8h.html#af27907ced0f5a43409ad96430fe0f914">json_object</a> *jso, void *userdata)</td> 151 </tr> 152 </table> 153 </div><div class="memdoc"> 154 <p>Type of custom user delete functions. See json_object_set_serializer. </p> 155 156 </div> 157 </div> 158 <a class="anchor" id="af88126730e765f2068968f4b16fd074f"></a> 159 <div class="memitem"> 160 <div class="memproto"> 161 <table class="memname"> 162 <tr> 163 <td class="memname">typedef struct <a class="el" href="structjson__object__iter.html">json_object_iter</a> <a class="el" href="structjson__object__iter.html">json_object_iter</a></td> 164 </tr> 165 </table> 166 </div><div class="memdoc"> 167 168 </div> 169 </div> 170 <a class="anchor" id="af84078100a9025df418f31626ea866fa"></a> 171 <div class="memitem"> 172 <div class="memproto"> 173 <table class="memname"> 174 <tr> 175 <td class="memname">typedef int( json_object_to_json_string_fn)(struct <a class="el" href="json__types_8h.html#af27907ced0f5a43409ad96430fe0f914">json_object</a> *jso, struct <a class="el" href="structprintbuf.html">printbuf</a> *pb, int level, int flags)</td> 176 </tr> 177 </table> 178 </div><div class="memdoc"> 179 <p>Type of a custom serialization function. See json_object_set_serializer. </p> 180 181 </div> 182 </div> 183 <a class="anchor" id="aba5eff84f8638d22f50403175f270c96"></a> 184 <div class="memitem"> 185 <div class="memproto"> 186 <table class="memname"> 187 <tr> 188 <td class="memname">typedef enum <a class="el" href="json__types_8h.html#ac75c61993722a9b8aaa44704072ec06c">json_type</a> <a class="el" href="json__types_8h.html#ac75c61993722a9b8aaa44704072ec06c">json_type</a></td> 189 </tr> 190 </table> 191 </div><div class="memdoc"> 192 193 </div> 194 </div> 195 <h2 class="groupheader">Enumeration Type Documentation</h2> 196 <a class="anchor" id="ac75c61993722a9b8aaa44704072ec06c"></a> 197 <div class="memitem"> 198 <div class="memproto"> 199 <table class="memname"> 200 <tr> 201 <td class="memname">enum <a class="el" href="json__types_8h.html#ac75c61993722a9b8aaa44704072ec06c">json_type</a></td> 202 </tr> 203 </table> 204 </div><div class="memdoc"> 205 <dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0"> 206 <tr><td valign="top"><em><a class="anchor" id="ac75c61993722a9b8aaa44704072ec06ca127e62d156e13517471fcde3378979c1"></a>json_type_null</em> </td><td> 207 </td></tr> 208 <tr><td valign="top"><em><a class="anchor" id="ac75c61993722a9b8aaa44704072ec06ca5d15299e90dbb9935ff6d3e2c22a285c"></a>json_type_boolean</em> </td><td> 209 </td></tr> 210 <tr><td valign="top"><em><a class="anchor" id="ac75c61993722a9b8aaa44704072ec06cac6ac2d9a16577d00210fea64d16b47cd"></a>json_type_double</em> </td><td> 211 </td></tr> 212 <tr><td valign="top"><em><a class="anchor" id="ac75c61993722a9b8aaa44704072ec06ca7bf325c213b43c5f970ae2d4443ab956"></a>json_type_int</em> </td><td> 213 </td></tr> 214 <tr><td valign="top"><em><a class="anchor" id="ac75c61993722a9b8aaa44704072ec06cac966c8008f0b2c07da59ee8a60ad440f"></a>json_type_object</em> </td><td> 215 </td></tr> 216 <tr><td valign="top"><em><a class="anchor" id="ac75c61993722a9b8aaa44704072ec06cae536c8c9da4648e6b9348abddde6113c"></a>json_type_array</em> </td><td> 217 </td></tr> 218 <tr><td valign="top"><em><a class="anchor" id="ac75c61993722a9b8aaa44704072ec06cac9f56e57c09245522d764015a054faa6"></a>json_type_string</em> </td><td> 219 </td></tr> 220 </table> 221 </dd> 222 </dl> 223 224 </div> 225 </div> 226 </div><!-- contents --> 227 <!-- start footer part --> 228 <hr class="footer"/><address class="footer"><small> 229 Generated on Sun Jul 26 2020 15:11:19 for json-c by  <a href="http://www.doxygen.org/index.html"> 230 <img class="footer" src="doxygen.png" alt="doxygen"/> 231 </a> 1.8.2 232 </small></address> 233 </body> 234 </html>
This page was automatically generated by LXR 0.3.1. • OpenWrt