]> git.kaiwu.me - nginx.git/commitdiff
HTTP/3: introduced ngx_http_v3_get_module_srv_conf() macro.
authorRoman Arutyunyan <arut@nginx.com>
Fri, 26 Jun 2020 08:58:00 +0000 (11:58 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Fri, 26 Jun 2020 08:58:00 +0000 (11:58 +0300)
The macro helps to access a module's server configuration from a QUIC
stream context.

src/http/v3/ngx_http_v3.h

index 29cc06ee95090ab38476815820c42b52e556804b..3c5bb721cdeb3de7888626c45a2380c207ce9f2f 100644 (file)
@@ -61,6 +61,12 @@ typedef struct {
 } ngx_http_v3_connection_t;
 
 
+#define ngx_http_v3_get_module_srv_conf(c, module)                            \
+    ngx_http_get_module_srv_conf(                                             \
+             ((ngx_http_v3_connection_t *) c->qs->parent->data)->hc.conf_ctx, \
+             module)
+
+
 typedef struct {
     ngx_str_t               name;
     ngx_str_t               value;