Lines Matching defs:parms
52 AP_IMPLEMENT_HOOK_RUN_FIRST(int, expr_lookup, (ap_expr_lookup_parms *parms),
53 (parms), DECLINED)
392 AP_DECLARE_NONSTD(int) ap_expr_lookup_default(ap_expr_lookup_parms *parms)
394 return ap_run_expr_lookup(parms);
481 ap_expr_lookup_parms parms;
482 parms.type = type;
483 parms.flags = ctx->flags;
484 parms.pool = ctx->pool;
485 parms.ptemp = ctx->ptemp;
486 parms.name = name;
487 parms.func = &info->node_arg1;
488 parms.data = &info->node_arg2;
489 parms.err = &ctx->error2;
490 parms.arg = NULL;
494 parms.arg = arg->node_arg1;
500 parms.arg = val->node_arg1;
509 if (ctx->lookup_fn(&parms) != OK)
1136 static int replace_func_parse_arg(ap_expr_lookup_parms *parms)
1138 const char *original = parms->arg;
1141 if (!parms->arg) {
1142 *parms->err = apr_psprintf(parms->ptemp, "replace() function needs "
1146 pattern = apr_strmatch_precompile(parms->pool, original, 0);
1147 *parms->data = pattern;
1649 static int subnet_parse_arg(ap_expr_lookup_parms *parms)
1652 const char *addr = parms->arg;
1656 if (!parms->arg) {
1657 *parms->err = apr_psprintf(parms->ptemp,
1659 parms->name);
1665 addr = apr_pstrmemdup(parms->ptemp, addr, mask - addr);
1669 ret = apr_ipsubnet_create(&subnet, addr, mask, parms->pool);
1671 *parms->err = "parsing of subnet/netmask failed";
1675 *parms->data = subnet;
1819 static int core_expr_lookup(ap_expr_lookup_parms *parms)
1821 switch (parms->type) {
1827 if (strcasecmp(*name, parms->name) == 0) {
1828 *parms->func = prov->func;
1829 *parms->data = name;
1842 switch (parms->type) {
1857 if (parms->type == AP_EXPR_FUNC_OP_UNARY)
1858 match = !strcmp(prov->name, parms->name);
1860 match = !strcasecmp(prov->name, parms->name);
1862 if ((parms->flags & AP_EXPR_FLAG_RESTRICTED)
1864 *parms->err =
1865 apr_psprintf(parms->ptemp,
1867 (parms->type == AP_EXPR_FUNC_STRING) ? "" : "-",
1871 *parms->func = prov->func;
1873 return prov->arg_parsing_func(parms);
1876 *parms->data = prov->name;
1890 static int expr_lookup_not_found(ap_expr_lookup_parms *parms)
1895 switch (parms->type) {
1912 *parms->err = "Inavalid expression type in expr_lookup";
1915 if ( parms->type == AP_EXPR_FUNC_OP_UNARY
1916 || parms->type == AP_EXPR_FUNC_OP_BINARY) {
1919 *parms->err = apr_psprintf(parms->ptemp, "%s '%s%s' does not exist", type,
1920 prefix, parms->name);