Lines Matching refs:ctx
26 if (ctx->status == PREFIX##_ERROR) \
28 else if (ctx->status == PREFIX##_COMPLETE) \
41 void *ctx)
51 p->ctx = ctx;
58 void *ctx)
64 h->ctx = ctx;
219 struct gen_ctx *ctx = parser->ctx;
225 if (ctx == NULL) {
226 parser->ctx = ctx = apr_palloc(pool, sizeof *ctx);
227 ctx->status = GEN_INCOMPLETE;
228 ctx->param = apreq_param_make(pool,
230 ctx->param->upload = apr_brigade_create(pool, parser->bucket_alloc);
231 ctx->param->info = apr_table_make(pool, APREQ_DEFAULT_NELTS);
246 s = apreq_hook_run(parser->hook, ctx->param, bb);
248 ctx->status = GEN_ERROR;
255 ctx->param->upload, bb);
258 ctx->status = GEN_ERROR;
263 ctx->status = GEN_COMPLETE;
285 struct xml_ctx *ctx = hook->ctx;
289 if (ctx == NULL) {
290 hook->ctx = ctx = apr_palloc(pool, sizeof *ctx);
291 ctx->doc = NULL;
292 ctx->xml_parser = apr_xml_parser_create(pool);
293 ctx->status = XML_INCOMPLETE;
305 s = apr_xml_parser_done(ctx->xml_parser, &ctx->doc);
307 ctx->status = XML_COMPLETE;
312 ctx->status = XML_ERROR;
323 ctx->status = XML_ERROR;
327 s = apr_xml_parser_feed(ctx->xml_parser, data, dlen);
330 ctx->status = XML_ERROR;
345 apreq_hook_find_param_ctx_t *ctx = hook->ctx;
350 if (is_final && s == APR_SUCCESS && ctx->param == NULL
351 && strcasecmp(ctx->name, param->v.name) == 0) {
352 ctx->param = param;
353 ctx->prev->next = hook->next;