MCPcopy Create free account
hub / github.com/apache/httpd / jselect_parent

Function jselect_parent

modules/md/md_json.c:139–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139static json_t *jselect_parent(const char **child_key, int create, md_json_t *json, va_list ap)
140{
141 const char *key, *next;
142 json_t *j, *jn;
143
144 *child_key = NULL;
145 j = json->j;
146 key = va_arg(ap, char *);
147 while (key && j) {
148 next = va_arg(ap, char *);
149 if (next) {
150 jn = json_object_get(j, key);
151 if (!jn && create) {
152 jn = json_object();
153 json_object_set_new(j, key, jn);
154 }
155 j = jn;
156 }
157 else {
158 *child_key = key;
159 }
160 key = next;
161 }
162 return j;
163}
164
165static apr_status_t jselect_add(json_t *val, md_json_t *json, va_list ap)
166{

Callers 10

jselect_addFunction · 0.85
jselect_insertFunction · 0.85
jselect_setFunction · 0.85
jselect_set_newFunction · 0.85
md_json_setjFunction · 0.85
md_json_delFunction · 0.85
md_json_sets_dictFunction · 0.85
md_json_setaFunction · 0.85
md_json_setsaFunction · 0.85
md_json_set_timeperiodFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected