blob: 581001ea4ea7f87fdb97fbd3e9e42030c2b6cef6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "handler.h"
extern inline void handle(const char *, size_t, struct container *);
void recurse(struct json_object *outer, const char *keys[], struct json_object **services)
{
struct json_object *inner = NULL;
json_object_object_get_ex(outer, *keys, &inner);
if (*++keys)
recurse(inner, keys, services);
else
*services = inner;
}
|