All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
json_missing.h File Reference

Function prototypes for missing functions in older json-c libraries. More...

#include "config.h"
#include <json/json_object_private.h>
+ Include dependency graph for json_missing.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#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)
 

Functions

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)
 

Detailed Description

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

Definition in file json_missing.h.

Macro Definition Documentation

#define fr_json_object_get_type (   _obj)    ((_obj) ? json_object_get_type(_obj) : json_type_null)

Definition at line 56 of file json_missing.h.

#define fr_json_object_is_type (   _obj,
  _type 
)    ((_obj) ? json_object_is_type(_obj, _type) : (_type == json_type_null))

Definition at line 57 of file json_missing.h.

#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)
#define val(x)
Definition: timestr.c:37
uint8_t data[]
Definition: eap_pwd.h:625

Definition at line 92 of file json_missing.h.

Function Documentation

int json_object_get_string_len ( struct json_object *  obj)

Definition at line 32 of file json_missing.c.

+ Here is the caller graph for this function:

int json_object_object_get_ex ( struct json_object *  jso,
const char *  key,
struct json_object **  value 
)

Definition at line 40 of file json_missing.c.

+ Here is the caller graph for this function:

const char* json_tokener_error_desc ( enum json_tokener_error  jerr)

Definition at line 68 of file json_missing.c.

+ Here is the caller graph for this function:

enum json_tokener_error json_tokener_get_error ( json_tokener *  tok)

Definition at line 62 of file json_missing.c.

+ Here is the caller graph for this function: