Function prototypes for missing functions in older json-c libraries.
More...
#include "config.h"
#include <json/json_object_private.h>
Go to the source code of this file.
Function prototypes for missing functions in older json-c libraries.
- Id:
- 8ad0534768ec94e56f9263c6bb50eb9c24d40bd6
- Author
- Aaron Hurt ahurt.nosp@m.@anb.nosp@m.cs.co.nosp@m.m
- Copyright
- 2013-2014 The FreeRADIUS Server Project.
Definition in file json_missing.h.
#define fr_json_object_get_type |
( |
|
_obj | ) |
((_obj) ? json_object_get_type(_obj) : json_type_null) |
#define fr_json_object_is_type |
( |
|
_obj, |
|
|
|
_type |
|
) |
| ((_obj) ? json_object_is_type(_obj, _type) : (_type == json_type_null)) |
#define json_object_object_foreach |
( |
|
obj, |
|
|
|
key, |
|
|
|
val |
|
) |
| |
Value:char *key = NULL; \
struct json_object *
val = NULL; \
struct lh_entry *entry; \
union ctn_u {
const void *cdata;
void *
data; } ctn; \
for (entry = json_object_get_object(obj)->head; \
(entry ? (key = (char *)entry->k, ctn.cdata = entry->v, \
val = (
struct json_object *)ctn.data, entry) : 0); entry = entry->next)
Definition at line 92 of file json_missing.h.
int json_object_get_string_len |
( |
struct json_object * |
obj | ) |
|
int json_object_object_get_ex |
( |
struct json_object * |
jso, |
|
|
const char * |
key, |
|
|
struct json_object ** |
value |
|
) |
| |
const char* json_tokener_error_desc |
( |
enum json_tokener_error |
jerr | ) |
|
enum json_tokener_error json_tokener_get_error |
( |
json_tokener * |
tok | ) |
|