Lines Matching refs:cf

57     ngx_http_browser_conf_t *cf);
59 static ngx_int_t ngx_http_browser_add_variables(ngx_conf_t *cf);
60 static void *ngx_http_browser_create_conf(ngx_conf_t *cf);
61 static char *ngx_http_browser_merge_conf(ngx_conf_t *cf, void *parent,
65 static char *ngx_http_modern_browser(ngx_conf_t *cf, ngx_command_t *cmd,
67 static char *ngx_http_ancient_browser(ngx_conf_t *cf, ngx_command_t *cmd,
69 static char *ngx_http_modern_browser_value(ngx_conf_t *cf, ngx_command_t *cmd,
71 static char *ngx_http_ancient_browser_value(ngx_conf_t *cf, ngx_command_t *cmd,
234 ngx_http_browser_conf_t *cf; in ngx_http_browser_variable() local
236 cf = ngx_http_get_module_loc_conf(r, ngx_http_browser_module); in ngx_http_browser_variable()
238 rc = ngx_http_browser(r, cf); in ngx_http_browser_variable()
241 *v = *cf->modern_browser_value; in ngx_http_browser_variable()
246 *v = *cf->ancient_browser_value; in ngx_http_browser_variable()
256 ngx_http_browser(ngx_http_request_t *r, ngx_http_browser_conf_t *cf) in ngx_http_browser() argument
265 if (cf->modern_unlisted_browsers) { in ngx_http_browser()
276 if (cf->modern_browsers) { in ngx_http_browser()
277 modern = cf->modern_browsers->elts; in ngx_http_browser()
279 for (i = 0; i < cf->modern_browsers->nelts; i++) { in ngx_http_browser()
349 if (!cf->modern_unlisted_browsers) { in ngx_http_browser()
354 if (cf->netscape4) { in ngx_http_browser()
363 if (cf->ancient_browsers) { in ngx_http_browser()
364 ancient = cf->ancient_browsers->elts; in ngx_http_browser()
366 for (i = 0; i < cf->ancient_browsers->nelts; i++) { in ngx_http_browser()
375 if (cf->modern_unlisted_browsers) { in ngx_http_browser()
398 ngx_http_browser_add_variables(ngx_conf_t *cf) in ngx_http_browser_add_variables() argument
404 var = ngx_http_add_variable(cf, &v->name, v->flags); in ngx_http_browser_add_variables()
418 ngx_http_browser_create_conf(ngx_conf_t *cf) in ngx_http_browser_create_conf() argument
422 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_browser_conf_t)); in ngx_http_browser_create_conf()
444 ngx_http_browser_merge_conf(ngx_conf_t *cf, void *parent, void *child) in ngx_http_browser_merge_conf() argument
538 ngx_http_modern_browser(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) in ngx_http_modern_browser() argument
548 value = cf->args->elts; in ngx_http_modern_browser()
550 if (cf->args->nelts == 2) { in ngx_http_modern_browser()
560 bcf->modern_browsers = ngx_array_create(cf->pool, 5, in ngx_http_modern_browser()
580 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, in ngx_http_modern_browser()
615 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, in ngx_http_modern_browser()
630 ngx_http_ancient_browser(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) in ngx_http_ancient_browser() argument
637 value = cf->args->elts; in ngx_http_ancient_browser()
639 for (i = 1; i < cf->args->nelts; i++) { in ngx_http_ancient_browser()
646 bcf->ancient_browsers = ngx_array_create(cf->pool, 4, in ngx_http_ancient_browser()
666 ngx_http_modern_browser_value(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) in ngx_http_modern_browser_value() argument
672 bcf->modern_browser_value = ngx_palloc(cf->pool, in ngx_http_modern_browser_value()
678 value = cf->args->elts; in ngx_http_modern_browser_value()
691 ngx_http_ancient_browser_value(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) in ngx_http_ancient_browser_value() argument
697 bcf->ancient_browser_value = ngx_palloc(cf->pool, in ngx_http_ancient_browser_value()
703 value = cf->args->elts; in ngx_http_ancient_browser_value()