File: ngx_rtmp_eval.h

package info (click to toggle)
nginx 1.18.0-6.1%2Bdeb11u3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 19,344 kB
  • sloc: ansic: 250,653; perl: 7,548; sh: 1,408; ruby: 879; python: 358; makefile: 338; awk: 36; cpp: 18
file content (44 lines) | stat: -rw-r--r-- 843 bytes parent folder | download | duplicates (4)
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

/*
 * Copyright (C) Roman Arutyunyan
 */


#ifndef _NGX_RTMP_EVAL_H_INCLUDED_
#define _NGX_RTMP_EVAL_H_INCLUDED_


#include <ngx_config.h>
#include <ngx_core.h>
#include "ngx_rtmp.h"


typedef struct ngx_rtmp_eval_s ngx_rtmp_eval_t;


typedef void (* ngx_rtmp_eval_pt)(void *ctx, 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(void *ctx, ngx_str_t *in, ngx_rtmp_eval_t **e,
    ngx_str_t *out, ngx_log_t *log);


ngx_int_t ngx_rtmp_eval_streams(ngx_str_t *in);


#endif /* _NGX_RTMP_EVAL_H_INCLUDED_ */