20 #ifndef __JSON_FORMAT_H__ 21 #define __JSON_FORMAT_H__ 25 #include <netinet/ip.h> 97 strncpy ((
char *) ns, (
const char *) str,
vec_len (ns));
153 return &json->
array[pos];
166 const char *
name,
u8 * str)
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) ...
#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)