| 123 | |
| 124 | |
| 125 | static json_t *jselect(const md_json_t *json, va_list ap) |
| 126 | { |
| 127 | json_t *j; |
| 128 | const char *key; |
| 129 | |
| 130 | j = json->j; |
| 131 | key = va_arg(ap, char *); |
| 132 | while (key && j) { |
| 133 | j = json_object_get(j, key); |
| 134 | key = va_arg(ap, char *); |
| 135 | } |
| 136 | return j; |
| 137 | } |
| 138 | |
| 139 | static json_t *jselect_parent(const char **child_key, int create, md_json_t *json, va_list ap) |
| 140 | { |
no outgoing calls
no test coverage detected