| 599 | } |
| 600 | |
| 601 | static void job_observation_start(md_job_t *job, md_result_t *result, md_store_t *store) |
| 602 | { |
| 603 | md_job_result_ctx *ctx; |
| 604 | |
| 605 | if (job->observing) md_result_on_change(job->observing, NULL, NULL); |
| 606 | job->observing = result; |
| 607 | |
| 608 | ctx = apr_pcalloc(result->p, sizeof(*ctx)); |
| 609 | ctx->p = result->p; |
| 610 | ctx->job = job; |
| 611 | ctx->store = store; |
| 612 | ctx->last = md_result_md_make(result->p, APR_SUCCESS); |
| 613 | md_result_assign(ctx->last, result); |
| 614 | md_result_on_change(result, job_result_update, ctx); |
| 615 | md_result_on_raise(result, job_result_raise, ctx); |
| 616 | md_result_on_holler(result, job_result_holler, ctx); |
| 617 | } |
| 618 | |
| 619 | static void job_observation_end(md_job_t *job) |
| 620 | { |
no test coverage detected