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

Function md_json_itera

modules/md/md_json.c:809–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

807}
808
809int md_json_itera(md_json_itera_cb *cb, void *baton, md_json_t *json, ...)
810{
811 json_t *j;
812 va_list ap;
813 size_t index;
814 json_t *val;
815 md_json_t wrap;
816
817 va_start(ap, json);
818 j = jselect(json, ap);
819 va_end(ap);
820
821 if (!j || !json_is_array(j)) {
822 return 0;
823 }
824
825 wrap.p = json->p;
826 json_array_foreach(j, index, val) {
827 wrap.j = val;
828 if (!cb(baton, index, &wrap)) {
829 return 0;
830 }
831 }
832 return 1;
833}
834
835int md_json_iterkey(md_json_iterkey_cb *cb, void *baton, md_json_t *json, ...)
836{

Callers 6

add_json_valFunction · 0.85
md_domains_status_hookFunction · 0.85
md_ocsp_status_hookFunction · 0.85
md_job_log_get_latestFunction · 0.85
md_acme_authz_updateFunction · 0.85
md_acme_authz_respondFunction · 0.85

Calls 1

jselectFunction · 0.85

Tested by

no test coverage detected