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

Function p_save

modules/md/md_store.c:201–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201static apr_status_t p_save(void *baton, apr_pool_t *p, apr_pool_t *ptemp, va_list ap)
202{
203 md_group_ctx *ctx = baton;
204 md_json_t *json;
205 md_t *md;
206 int create;
207
208 md = va_arg(ap, md_t *);
209 create = va_arg(ap, int);
210
211 json = md_to_json(md, ptemp);
212 assert(json);
213 assert(md->name);
214 return md_store_save_json(ctx->store, p, ctx->group, md->name, MD_FN_MD, json, create);
215}
216
217apr_status_t md_save(md_store_t *store, apr_pool_t *p,
218 md_store_group_t group, md_t *md, int create)

Callers

nothing calls this directly

Calls 2

md_to_jsonFunction · 0.85
md_store_save_jsonFunction · 0.85

Tested by

no test coverage detected