nginx-mod-rtmp/ngx_rtmp_eval.h

45 lines
843 B
C
Raw Normal View History

2013-11-03 20:11:37 +01:00
2012-09-12 12:58:31 +02:00
/*
2013-11-03 20:11:37 +01:00
* Copyright (C) Roman Arutyunyan
2012-09-12 12:58:31 +02:00
*/
#ifndef _NGX_RTMP_EVAL_H_INCLUDED_
#define _NGX_RTMP_EVAL_H_INCLUDED_
#include <ngx_config.h>
#include <ngx_core.h>
2012-09-12 12:58:31 +02:00
#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,
2012-09-12 12:58:31 +02:00
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);
2012-09-12 12:58:31 +02:00
2013-04-24 14:08:15 +02:00
ngx_int_t ngx_rtmp_eval_streams(ngx_str_t *in);
2012-09-12 12:58:31 +02:00
#endif /* _NGX_RTMP_EVAL_H_INCLUDED_ */