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_util.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="#define-members">Macros</a> | 51 <a href="#func-members">Functions</a> </div> 52 <div class="headertitle"> 53 <div class="title">json_util.h File Reference</div> </div> 54 </div><!--header--> 55 <div class="contents"> 56 57 <p>Miscllaneous utility functions and macros. 58 <a href="#details">More...</a></p> 59 <table class="memberdecls"> 60 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> 61 Macros</h2></td></tr> 62 <tr class="memitem:a3dde282dc23d0eaa3c4840df8dc262d4"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="json__util_8h.html#a3dde282dc23d0eaa3c4840df8dc262d4">json_min</a>(a, b)   ((a) < (b) ? (a) : (b))</td></tr> 63 <tr class="separator:a3dde282dc23d0eaa3c4840df8dc262d4"><td class="memSeparator" colspan="2"> </td></tr> 64 <tr class="memitem:a57d63d199d4b9ea40359253618951300"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="json__util_8h.html#a57d63d199d4b9ea40359253618951300">json_max</a>(a, b)   ((a) > (b) ? (a) : (b))</td></tr> 65 <tr class="separator:a57d63d199d4b9ea40359253618951300"><td class="memSeparator" colspan="2"> </td></tr> 66 <tr class="memitem:a084b6afc8f7fbef88976aabe4aca7efd"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="json__util_8h.html#a084b6afc8f7fbef88976aabe4aca7efd">JSON_FILE_BUF_SIZE</a>   4096</td></tr> 67 <tr class="separator:a084b6afc8f7fbef88976aabe4aca7efd"><td class="memSeparator" colspan="2"> </td></tr> 68 </table><table class="memberdecls"> 69 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> 70 Functions</h2></td></tr> 71 <tr class="memitem:a03119ec0a71af4eee95318e9b2aaf05b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> struct <a class="el" href="json__types_8h.html#af27907ced0f5a43409ad96430fe0f914">json_object</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="json__util_8h.html#a03119ec0a71af4eee95318e9b2aaf05b">json_object_from_file</a> (const char *filename)</td></tr> 72 <tr class="separator:a03119ec0a71af4eee95318e9b2aaf05b"><td class="memSeparator" colspan="2"> </td></tr> 73 <tr class="memitem:a88c5c7ce735d95f6c3c81c73475e14aa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> struct <a class="el" href="json__types_8h.html#af27907ced0f5a43409ad96430fe0f914">json_object</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="json__util_8h.html#a88c5c7ce735d95f6c3c81c73475e14aa">json_object_from_fd_ex</a> (int fd, int depth)</td></tr> 74 <tr class="separator:a88c5c7ce735d95f6c3c81c73475e14aa"><td class="memSeparator" colspan="2"> </td></tr> 75 <tr class="memitem:a5b72bf6f3ac8fb03da38d2e2d1e18d1b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> struct <a class="el" href="json__types_8h.html#af27907ced0f5a43409ad96430fe0f914">json_object</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="json__util_8h.html#a5b72bf6f3ac8fb03da38d2e2d1e18d1b">json_object_from_fd</a> (int fd)</td></tr> 76 <tr class="separator:a5b72bf6f3ac8fb03da38d2e2d1e18d1b"><td class="memSeparator" colspan="2"> </td></tr> 77 <tr class="memitem:a486fc95fafe7cb91c58c7f6487036bc5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> int </td><td class="memItemRight" valign="bottom"><a class="el" href="json__util_8h.html#a486fc95fafe7cb91c58c7f6487036bc5">json_object_to_file</a> (const char *filename, struct <a class="el" href="json__types_8h.html#af27907ced0f5a43409ad96430fe0f914">json_object</a> *obj)</td></tr> 78 <tr class="separator:a486fc95fafe7cb91c58c7f6487036bc5"><td class="memSeparator" colspan="2"> </td></tr> 79 <tr class="memitem:a68a7385c555cf21797e361d1d4de3441"><td class="memItemLeft" align="right" valign="top"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> int </td><td class="memItemRight" valign="bottom"><a class="el" href="json__util_8h.html#a68a7385c555cf21797e361d1d4de3441">json_object_to_file_ext</a> (const char *filename, struct <a class="el" href="json__types_8h.html#af27907ced0f5a43409ad96430fe0f914">json_object</a> *obj, int flags)</td></tr> 80 <tr class="separator:a68a7385c555cf21797e361d1d4de3441"><td class="memSeparator" colspan="2"> </td></tr> 81 <tr class="memitem:afd492c120e359d2d75b67da96b580661"><td class="memItemLeft" align="right" valign="top"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> int </td><td class="memItemRight" valign="bottom"><a class="el" href="json__util_8h.html#afd492c120e359d2d75b67da96b580661">json_object_to_fd</a> (int fd, struct <a class="el" href="json__types_8h.html#af27907ced0f5a43409ad96430fe0f914">json_object</a> *obj, int flags)</td></tr> 82 <tr class="separator:afd492c120e359d2d75b67da96b580661"><td class="memSeparator" colspan="2"> </td></tr> 83 <tr class="memitem:a9fe4dbb5fe32850cdc22a97454e4500b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="json__util_8h.html#a9fe4dbb5fe32850cdc22a97454e4500b">json_util_get_last_err</a> (void)</td></tr> 84 <tr class="separator:a9fe4dbb5fe32850cdc22a97454e4500b"><td class="memSeparator" colspan="2"> </td></tr> 85 <tr class="memitem:a9d9a63936cdae6639b9cdd87fdd13506"><td class="memItemLeft" align="right" valign="top"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> int </td><td class="memItemRight" valign="bottom"><a class="el" href="json__util_8h.html#a9d9a63936cdae6639b9cdd87fdd13506">json_parse_int64</a> (const char *buf, int64_t *retval)</td></tr> 86 <tr class="separator:a9d9a63936cdae6639b9cdd87fdd13506"><td class="memSeparator" colspan="2"> </td></tr> 87 <tr class="memitem:a94c2340c1344d57f7aa067f2dd0407f9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> int </td><td class="memItemRight" valign="bottom"><a class="el" href="json__util_8h.html#a94c2340c1344d57f7aa067f2dd0407f9">json_parse_uint64</a> (const char *buf, uint64_t *retval)</td></tr> 88 <tr class="separator:a94c2340c1344d57f7aa067f2dd0407f9"><td class="memSeparator" colspan="2"> </td></tr> 89 <tr class="memitem:a3f0f0b8f29a41b47d62e6c867707be50"><td class="memItemLeft" align="right" valign="top"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> int </td><td class="memItemRight" valign="bottom"><a class="el" href="json__util_8h.html#a3f0f0b8f29a41b47d62e6c867707be50">json_parse_double</a> (const char *buf, double *retval)</td></tr> 90 <tr class="separator:a3f0f0b8f29a41b47d62e6c867707be50"><td class="memSeparator" colspan="2"> </td></tr> 91 <tr class="memitem:a762aaf3df0a9c7b6919cdc1035348012"><td class="memItemLeft" align="right" valign="top"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="json__util_8h.html#a762aaf3df0a9c7b6919cdc1035348012">json_type_to_name</a> (enum <a class="el" href="json__types_8h.html#ac75c61993722a9b8aaa44704072ec06c">json_type</a> o_type)</td></tr> 92 <tr class="separator:a762aaf3df0a9c7b6919cdc1035348012"><td class="memSeparator" colspan="2"> </td></tr> 93 </table> 94 <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> 95 <div class="textblock"><p>Miscllaneous utility functions and macros. </p> 96 </div><h2 class="groupheader">Macro Definition Documentation</h2> 97 <a class="anchor" id="a084b6afc8f7fbef88976aabe4aca7efd"></a> 98 <div class="memitem"> 99 <div class="memproto"> 100 <table class="memname"> 101 <tr> 102 <td class="memname">#define JSON_FILE_BUF_SIZE   4096</td> 103 </tr> 104 </table> 105 </div><div class="memdoc"> 106 107 </div> 108 </div> 109 <a class="anchor" id="a57d63d199d4b9ea40359253618951300"></a> 110 <div class="memitem"> 111 <div class="memproto"> 112 <table class="memname"> 113 <tr> 114 <td class="memname">#define json_max</td> 115 <td>(</td> 116 <td class="paramtype"> </td> 117 <td class="paramname">a, </td> 118 </tr> 119 <tr> 120 <td class="paramkey"></td> 121 <td></td> 122 <td class="paramtype"> </td> 123 <td class="paramname">b </td> 124 </tr> 125 <tr> 126 <td></td> 127 <td>)</td> 128 <td></td><td>   ((a) > (b) ? (a) : (b))</td> 129 </tr> 130 </table> 131 </div><div class="memdoc"> 132 133 </div> 134 </div> 135 <a class="anchor" id="a3dde282dc23d0eaa3c4840df8dc262d4"></a> 136 <div class="memitem"> 137 <div class="memproto"> 138 <table class="memname"> 139 <tr> 140 <td class="memname">#define json_min</td> 141 <td>(</td> 142 <td class="paramtype"> </td> 143 <td class="paramname">a, </td> 144 </tr> 145 <tr> 146 <td class="paramkey"></td> 147 <td></td> 148 <td class="paramtype"> </td> 149 <td class="paramname">b </td> 150 </tr> 151 <tr> 152 <td></td> 153 <td>)</td> 154 <td></td><td>   ((a) < (b) ? (a) : (b))</td> 155 </tr> 156 </table> 157 </div><div class="memdoc"> 158 159 </div> 160 </div> 161 <h2 class="groupheader">Function Documentation</h2> 162 <a class="anchor" id="a5b72bf6f3ac8fb03da38d2e2d1e18d1b"></a> 163 <div class="memitem"> 164 <div class="memproto"> 165 <table class="mlabels"> 166 <tr> 167 <td class="mlabels-left"> 168 <table class="memname"> 169 <tr> 170 <td class="memname"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> struct <a class="el" href="json__types_8h.html#af27907ced0f5a43409ad96430fe0f914">json_object</a>* json_object_from_fd </td> 171 <td>(</td> 172 <td class="paramtype">int </td> 173 <td class="paramname"><em>fd</em></td><td>)</td> 174 <td></td> 175 </tr> 176 </table> 177 </td> 178 <td class="mlabels-right"> 179 <span class="mlabels"><span class="mlabel">read</span></span> </td> 180 </tr> 181 </table> 182 </div><div class="memdoc"> 183 <p>Create a JSON object from an already opened file descriptor, using the default maximum object depth. (JSON_TOKENER_DEFAULT_DEPTH)</p> 184 <p>See <a class="el" href="json__util_8h.html#a88c5c7ce735d95f6c3c81c73475e14aa">json_object_from_fd_ex()</a> for details. </p> 185 186 </div> 187 </div> 188 <a class="anchor" id="a88c5c7ce735d95f6c3c81c73475e14aa"></a> 189 <div class="memitem"> 190 <div class="memproto"> 191 <table class="mlabels"> 192 <tr> 193 <td class="mlabels-left"> 194 <table class="memname"> 195 <tr> 196 <td class="memname"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> struct <a class="el" href="json__types_8h.html#af27907ced0f5a43409ad96430fe0f914">json_object</a>* json_object_from_fd_ex </td> 197 <td>(</td> 198 <td class="paramtype">int </td> 199 <td class="paramname"><em>fd</em>, </td> 200 </tr> 201 <tr> 202 <td class="paramkey"></td> 203 <td></td> 204 <td class="paramtype">int </td> 205 <td class="paramname"><em>depth</em> </td> 206 </tr> 207 <tr> 208 <td></td> 209 <td>)</td> 210 <td></td><td></td> 211 </tr> 212 </table> 213 </td> 214 <td class="mlabels-right"> 215 <span class="mlabels"><span class="mlabel">read</span></span> </td> 216 </tr> 217 </table> 218 </div><div class="memdoc"> 219 <p>Create a JSON object from already opened file descriptor.</p> 220 <p>This function can be helpful, when you opened the file already, e.g. when you have a temp file. Note, that the fd must be readable at the actual position, i.e. use lseek(fd, 0, SEEK_SET) before.</p> 221 <p>The depth argument specifies the maximum object depth to pass to <a class="el" href="json__tokener_8h.html#a6a1583ddd434e13515d6232de813462e">json_tokener_new_ex()</a>. When depth == -1, JSON_TOKENER_DEFAULT_DEPTH is used instead.</p> 222 <p>Returns NULL on failure. See <a class="el" href="json__util_8h.html#a9fe4dbb5fe32850cdc22a97454e4500b">json_util_get_last_err()</a> for details. </p> 223 224 </div> 225 </div> 226 <a class="anchor" id="a03119ec0a71af4eee95318e9b2aaf05b"></a> 227 <div class="memitem"> 228 <div class="memproto"> 229 <table class="mlabels"> 230 <tr> 231 <td class="mlabels-left"> 232 <table class="memname"> 233 <tr> 234 <td class="memname"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> struct <a class="el" href="json__types_8h.html#af27907ced0f5a43409ad96430fe0f914">json_object</a>* json_object_from_file </td> 235 <td>(</td> 236 <td class="paramtype">const char * </td> 237 <td class="paramname"><em>filename</em></td><td>)</td> 238 <td></td> 239 </tr> 240 </table> 241 </td> 242 <td class="mlabels-right"> 243 <span class="mlabels"><span class="mlabel">read</span></span> </td> 244 </tr> 245 </table> 246 </div><div class="memdoc"> 247 <p>Read the full contents of the given file, then convert it to a json_object using <a class="el" href="json__tokener_8h.html#a236ef64d079822a4411d13eae7190c4d">json_tokener_parse()</a>.</p> 248 <p>Returns NULL on failure. See <a class="el" href="json__util_8h.html#a9fe4dbb5fe32850cdc22a97454e4500b">json_util_get_last_err()</a> for details. </p> 249 250 </div> 251 </div> 252 <a class="anchor" id="afd492c120e359d2d75b67da96b580661"></a> 253 <div class="memitem"> 254 <div class="memproto"> 255 <table class="memname"> 256 <tr> 257 <td class="memname"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> int json_object_to_fd </td> 258 <td>(</td> 259 <td class="paramtype">int </td> 260 <td class="paramname"><em>fd</em>, </td> 261 </tr> 262 <tr> 263 <td class="paramkey"></td> 264 <td></td> 265 <td class="paramtype">struct <a class="el" href="json__types_8h.html#af27907ced0f5a43409ad96430fe0f914">json_object</a> * </td> 266 <td class="paramname"><em>obj</em>, </td> 267 </tr> 268 <tr> 269 <td class="paramkey"></td> 270 <td></td> 271 <td class="paramtype">int </td> 272 <td class="paramname"><em>flags</em> </td> 273 </tr> 274 <tr> 275 <td></td> 276 <td>)</td> 277 <td></td><td></td> 278 </tr> 279 </table> 280 </div><div class="memdoc"> 281 <p>Convert the json_object to a string and write it to the file descriptor. Handles partial writes and will keep writing until done, or an error occurs.</p> 282 <dl class="params"><dt>Parameters</dt><dd> 283 <table class="params"> 284 <tr><td class="paramname">fd</td><td>an open, writable file descriptor to write to </td></tr> 285 <tr><td class="paramname">obj</td><td>the object to serializer and write </td></tr> 286 <tr><td class="paramname">flags</td><td>flags to pass to <a class="el" href="json__object_8h.html#a9db613127bd4ef7db42307e43a85fc1b">json_object_to_json_string_ext()</a> </td></tr> 287 </table> 288 </dd> 289 </dl> 290 <dl class="section return"><dt>Returns</dt><dd>-1 if something fails. See <a class="el" href="json__util_8h.html#a9fe4dbb5fe32850cdc22a97454e4500b">json_util_get_last_err()</a> for details. </dd></dl> 291 292 </div> 293 </div> 294 <a class="anchor" id="a486fc95fafe7cb91c58c7f6487036bc5"></a> 295 <div class="memitem"> 296 <div class="memproto"> 297 <table class="memname"> 298 <tr> 299 <td class="memname"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> int json_object_to_file </td> 300 <td>(</td> 301 <td class="paramtype">const char * </td> 302 <td class="paramname"><em>filename</em>, </td> 303 </tr> 304 <tr> 305 <td class="paramkey"></td> 306 <td></td> 307 <td class="paramtype">struct <a class="el" href="json__types_8h.html#af27907ced0f5a43409ad96430fe0f914">json_object</a> * </td> 308 <td class="paramname"><em>obj</em> </td> 309 </tr> 310 <tr> 311 <td></td> 312 <td>)</td> 313 <td></td><td></td> 314 </tr> 315 </table> 316 </div><div class="memdoc"> 317 <p>Equivalent to: json_object_to_file_ext(filename, obj, JSON_C_TO_STRING_PLAIN);</p> 318 <p>Returns -1 if something fails. See <a class="el" href="json__util_8h.html#a9fe4dbb5fe32850cdc22a97454e4500b">json_util_get_last_err()</a> for details. </p> 319 320 </div> 321 </div> 322 <a class="anchor" id="a68a7385c555cf21797e361d1d4de3441"></a> 323 <div class="memitem"> 324 <div class="memproto"> 325 <table class="memname"> 326 <tr> 327 <td class="memname"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> int json_object_to_file_ext </td> 328 <td>(</td> 329 <td class="paramtype">const char * </td> 330 <td class="paramname"><em>filename</em>, </td> 331 </tr> 332 <tr> 333 <td class="paramkey"></td> 334 <td></td> 335 <td class="paramtype">struct <a class="el" href="json__types_8h.html#af27907ced0f5a43409ad96430fe0f914">json_object</a> * </td> 336 <td class="paramname"><em>obj</em>, </td> 337 </tr> 338 <tr> 339 <td class="paramkey"></td> 340 <td></td> 341 <td class="paramtype">int </td> 342 <td class="paramname"><em>flags</em> </td> 343 </tr> 344 <tr> 345 <td></td> 346 <td>)</td> 347 <td></td><td></td> 348 </tr> 349 </table> 350 </div><div class="memdoc"> 351 <p>Open and truncate the given file, creating it if necessary, then convert the json_object to a string and write it to the file.</p> 352 <p>Returns -1 if something fails. See <a class="el" href="json__util_8h.html#a9fe4dbb5fe32850cdc22a97454e4500b">json_util_get_last_err()</a> for details. </p> 353 354 </div> 355 </div> 356 <a class="anchor" id="a3f0f0b8f29a41b47d62e6c867707be50"></a> 357 <div class="memitem"> 358 <div class="memproto"> 359 <table class="memname"> 360 <tr> 361 <td class="memname"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> int json_parse_double </td> 362 <td>(</td> 363 <td class="paramtype">const char * </td> 364 <td class="paramname"><em>buf</em>, </td> 365 </tr> 366 <tr> 367 <td class="paramkey"></td> 368 <td></td> 369 <td class="paramtype">double * </td> 370 <td class="paramname"><em>retval</em> </td> 371 </tr> 372 <tr> 373 <td></td> 374 <td>)</td> 375 <td></td><td></td> 376 </tr> 377 </table> 378 </div><div class="memdoc"> 379 <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000008">Deprecated:</a></b></dt><dd></dd></dl> 380 381 </div> 382 </div> 383 <a class="anchor" id="a9d9a63936cdae6639b9cdd87fdd13506"></a> 384 <div class="memitem"> 385 <div class="memproto"> 386 <table class="memname"> 387 <tr> 388 <td class="memname"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> int json_parse_int64 </td> 389 <td>(</td> 390 <td class="paramtype">const char * </td> 391 <td class="paramname"><em>buf</em>, </td> 392 </tr> 393 <tr> 394 <td class="paramkey"></td> 395 <td></td> 396 <td class="paramtype">int64_t * </td> 397 <td class="paramname"><em>retval</em> </td> 398 </tr> 399 <tr> 400 <td></td> 401 <td>)</td> 402 <td></td><td></td> 403 </tr> 404 </table> 405 </div><div class="memdoc"> 406 407 </div> 408 </div> 409 <a class="anchor" id="a94c2340c1344d57f7aa067f2dd0407f9"></a> 410 <div class="memitem"> 411 <div class="memproto"> 412 <table class="memname"> 413 <tr> 414 <td class="memname"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> int json_parse_uint64 </td> 415 <td>(</td> 416 <td class="paramtype">const char * </td> 417 <td class="paramname"><em>buf</em>, </td> 418 </tr> 419 <tr> 420 <td class="paramkey"></td> 421 <td></td> 422 <td class="paramtype">uint64_t * </td> 423 <td class="paramname"><em>retval</em> </td> 424 </tr> 425 <tr> 426 <td></td> 427 <td>)</td> 428 <td></td><td></td> 429 </tr> 430 </table> 431 </div><div class="memdoc"> 432 433 </div> 434 </div> 435 <a class="anchor" id="a762aaf3df0a9c7b6919cdc1035348012"></a> 436 <div class="memitem"> 437 <div class="memproto"> 438 <table class="memname"> 439 <tr> 440 <td class="memname"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> const char* json_type_to_name </td> 441 <td>(</td> 442 <td class="paramtype">enum <a class="el" href="json__types_8h.html#ac75c61993722a9b8aaa44704072ec06c">json_type</a> </td> 443 <td class="paramname"><em>o_type</em></td><td>)</td> 444 <td></td> 445 </tr> 446 </table> 447 </div><div class="memdoc"> 448 <p>Return a string describing the type of the object. e.g. "int", or "object", etc... </p> 449 450 </div> 451 </div> 452 <a class="anchor" id="a9fe4dbb5fe32850cdc22a97454e4500b"></a> 453 <div class="memitem"> 454 <div class="memproto"> 455 <table class="memname"> 456 <tr> 457 <td class="memname"><a class="el" href="printbuf_8h.html#a2a31d5c00f3a4712f2d5d62aee66344e">JSON_EXPORT</a> const char* json_util_get_last_err </td> 458 <td>(</td> 459 <td class="paramtype">void </td> 460 <td class="paramname"></td><td>)</td> 461 <td></td> 462 </tr> 463 </table> 464 </div><div class="memdoc"> 465 <p>Return the last error from various json-c functions, including: json_object_to_file{,<em>ext}, <a class="el" href="json__util_8h.html#afd492c120e359d2d75b67da96b580661">json_object_to_fd()</a> or json_object_from</em>{file,fd}, or NULL if there is none. </p> 466 467 </div> 468 </div> 469 </div><!-- contents --> 470 <!-- start footer part --> 471 <hr class="footer"/><address class="footer"><small> 472 Generated on Sun Jul 26 2020 15:11:19 for json-c by  <a href="http://www.doxygen.org/index.html"> 473 <img class="footer" src="doxygen.png" alt="doxygen"/> 474 </a> 1.8.2 475 </small></address> 476 </body> 477 </html>
This page was automatically generated by LXR 0.3.1. • OpenWrt