forked from winshining/nginx-http-flv-module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathngx_rtmp_exec_module.h
53 lines (36 loc) · 1.23 KB
/
ngx_rtmp_exec_module.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* Copyright (C) Winshining
*/
#ifndef _NGX_RTMP_EXEC_H_INCLUDED_
#define _NGX_RTMP_EXEC_H_INCLUDED_
enum {
NGX_RTMP_EXEC_PUSH,
NGX_RTMP_EXEC_PULL,
NGX_RTMP_EXEC_PUBLISH,
NGX_RTMP_EXEC_PUBLISH_DONE,
NGX_RTMP_EXEC_PLAY,
NGX_RTMP_EXEC_PLAY_DONE,
NGX_RTMP_EXEC_RECORD_DONE,
NGX_RTMP_EXEC_MAX,
NGX_RTMP_EXEC_STATIC
};
typedef struct ngx_rtmp_exec_pull_ctx_s ngx_rtmp_exec_pull_ctx_t;
struct ngx_rtmp_exec_pull_ctx_s {
ngx_pool_t *pool;
ngx_uint_t counter;
ngx_str_t name;
ngx_str_t app;
ngx_array_t pull_exec; /* ngx_rtmp_exec_t */
ngx_rtmp_exec_pull_ctx_t *next;
};
typedef struct {
ngx_int_t active;
ngx_array_t conf[NGX_RTMP_EXEC_MAX];
/* ngx_rtmp_exec_conf_t */
ngx_flag_t respawn;
ngx_flag_t options;
ngx_uint_t nbuckets;
ngx_rtmp_exec_pull_ctx_t **pull;
} ngx_rtmp_exec_app_conf_t;
extern ngx_module_t ngx_rtmp_exec_module;
#endif