forked from arut/nginx-rtmp-module
-
Notifications
You must be signed in to change notification settings - Fork 9
/
ngx_rtmp_dynamic.h
36 lines (23 loc) · 977 Bytes
/
ngx_rtmp_dynamic.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* Copyright (C) AlexWoo(Wu Jie) [email protected]
*/
#ifndef _NGX_RTMP_DYNAMIC_H_INCLUDED_
#define _NGX_RTMP_DYNAMIC_H_INCLUDED_
#include <ngx_config.h>
#include <ngx_core.h>
#include "ngx_map.h"
#include "ngx_dynamic_conf.h"
#include "ngx_rtmp.h"
typedef struct {
void *(*create_main_conf)(ngx_conf_t *cf);
char *(*init_main_conf)(ngx_conf_t *cf, void *conf);
void *(*create_srv_conf)(ngx_conf_t *cf);
char *(*init_srv_conf)(ngx_conf_t *cf, void *conf);
void *(*create_app_conf)(ngx_conf_t *cf);
char *(*init_app_conf)(ngx_conf_t *cf, void *conf);
} ngx_rtmp_dynamic_module_t;
void *ngx_rtmp_get_module_main_dconf(ngx_rtmp_session_t *s, ngx_module_t *m);
void *ngx_rtmp_get_module_srv_dconf(ngx_rtmp_session_t *s, ngx_module_t *m);
void *ngx_rtmp_get_module_app_dconf(ngx_rtmp_session_t *s, ngx_module_t *m);
void ngx_rmtp_get_serverid_by_domain(ngx_str_t *serverid, ngx_str_t *domain);
#endif