20 #ifndef __JSON_FORMAT_H__ 21 #define __JSON_FORMAT_H__ 25 #include <netinet/ip.h> 97 strcpy ((
char *) ns, (
const char *) str);
153 return &json->
array[pos];
166 const char *name,
u8 * str)
173 const char *name,
u64 number)
192 const char *name,
struct in_addr
ip4)
199 const char *name,
struct in6_addr
ip6)
224 for (i = 0; i <
size; i++)
238 if (0 == strcmp (json->
pairs[i].
name, name))
#define vec_validate(V, I)
Make sure vector is long enough for given index (no header, unspecified alignment) ...
sll srl srl sll sra u16x4 i
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
#define static_always_inline
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)