forked from arut/nginx-rtmp-module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ngx_rtmp_eval.h
40 lines (21 loc) · 814 Bytes
/
ngx_rtmp_eval.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
/*
* Copyright (c) 2012 Roman Arutyunyan
*/
#ifndef _NGX_RTMP_EVAL_H_INCLUDED_
#define _NGX_RTMP_EVAL_H_INCLUDED_
#include "ngx_rtmp.h"
typedef struct ngx_rtmp_eval_s ngx_rtmp_eval_t;
typedef void (* ngx_rtmp_eval_pt)(ngx_rtmp_session_t *s, ngx_rtmp_eval_t *e,
ngx_str_t *ret);
struct ngx_rtmp_eval_s {
ngx_str_t name;
ngx_rtmp_eval_pt handler;
ngx_uint_t offset;
};
#define ngx_rtmp_null_eval { ngx_null_string, NULL, 0 }
/* standard session eval variables */
extern ngx_rtmp_eval_t ngx_rtmp_eval_session[];
ngx_int_t ngx_rtmp_eval(ngx_rtmp_session_t *s, ngx_str_t *in,
ngx_rtmp_eval_t **e, ngx_str_t *out);
ngx_int_t ngx_rtmp_eval_streams(ngx_str_t *in);
#endif /* _NGX_RTMP_EVAL_H_INCLUDED_ */