comparison src/http/v3/ngx_http_v3_module.c @ 8493:e533a352d118 quic

Style: moved function declarations to match usual code style. Plus a few other minor style changes.
author Roman Arutyunyan <arut@nginx.com>
date Thu, 23 Jul 2020 11:40:10 +0300
parents 65c1fc5fae15
children 0596fe1aee16
comparison
equal deleted inserted replaced
8492:65c1fc5fae15 8493:e533a352d118
6 6
7 7
8 #include <ngx_config.h> 8 #include <ngx_config.h>
9 #include <ngx_core.h> 9 #include <ngx_core.h>
10 #include <ngx_http.h> 10 #include <ngx_http.h>
11
12
13 static ngx_int_t ngx_http_variable_http3(ngx_http_request_t *r,
14 ngx_http_variable_value_t *v, uintptr_t data);
15 static ngx_int_t ngx_http_v3_add_variables(ngx_conf_t *cf);
16 static void *ngx_http_v3_create_srv_conf(ngx_conf_t *cf);
17 static char *ngx_http_v3_merge_srv_conf(ngx_conf_t *cf, void *parent,
18 void *child);
11 19
12 20
13 static ngx_command_t ngx_http_v3_commands[] = { 21 static ngx_command_t ngx_http_v3_commands[] = {
14 22
15 { ngx_string("http3_max_field_size"), 23 { ngx_string("http3_max_field_size"),
33 offsetof(ngx_http_v3_srv_conf_t, max_blocked_streams), 41 offsetof(ngx_http_v3_srv_conf_t, max_blocked_streams),
34 NULL }, 42 NULL },
35 43
36 ngx_null_command 44 ngx_null_command
37 }; 45 };
38
39
40 static ngx_int_t ngx_http_variable_http3(ngx_http_request_t *r,
41 ngx_http_variable_value_t *v, uintptr_t data);
42 static ngx_int_t ngx_http_v3_add_variables(ngx_conf_t *cf);
43 static void *ngx_http_v3_create_srv_conf(ngx_conf_t *cf);
44 static char *ngx_http_v3_merge_srv_conf(ngx_conf_t *cf,
45 void *parent, void *child);
46 46
47 47
48 static ngx_http_module_t ngx_http_v3_module_ctx = { 48 static ngx_http_module_t ngx_http_v3_module_ctx = {
49 ngx_http_v3_add_variables, /* preconfiguration */ 49 ngx_http_v3_add_variables, /* preconfiguration */
50 NULL, /* postconfiguration */ 50 NULL, /* postconfiguration */
76 }; 76 };
77 77
78 78
79 static ngx_http_variable_t ngx_http_v3_vars[] = { 79 static ngx_http_variable_t ngx_http_v3_vars[] = {
80 80
81 { ngx_string("http3"), NULL, ngx_http_variable_http3, 81 { ngx_string("http3"), NULL, ngx_http_variable_http3, 0, 0, 0 },
82 0, 0, 0 },
83 82
84 ngx_http_null_variable 83 ngx_http_null_variable
85 }; 84 };
86 85
87 86
121 120
122 return NGX_OK; 121 return NGX_OK;
123 } 122 }
124 123
125 124
126
127 static void * 125 static void *
128 ngx_http_v3_create_srv_conf(ngx_conf_t *cf) 126 ngx_http_v3_create_srv_conf(ngx_conf_t *cf)
129 { 127 {
130 ngx_http_v3_srv_conf_t *h3scf; 128 ngx_http_v3_srv_conf_t *h3scf;
131 129