comparison src/http/modules/perl/ngx_http_perl_module.h @ 599:869b6444d234 release-0.3.21

nginx-0.3.21-RELEASE import *) Feature: the ngx_http_perl_module. *) Change: the "valid_referers" directive allows the referreres without URI part.
author Igor Sysoev <igor@sysoev.ru>
date Mon, 16 Jan 2006 14:56:53 +0000
parents
children 51b27717f140
comparison
equal deleted inserted replaced
598:bfa12c280dec 599:869b6444d234
1
2 /*
3 * Copyright (C) Igor Sysoev
4 */
5
6
7 #ifndef _NGX_HTTP_PERL_MODULE_H_INCLUDED_
8 #define _NGX_HTTP_PERL_MODULE_H_INCLUDED_
9
10
11 #include <ngx_config.h>
12 #include <ngx_core.h>
13 #include <ngx_http.h>
14
15 #include <EXTERN.h>
16 #include <perl.h>
17
18
19 typedef ngx_http_request_t *nginx;
20
21 typedef struct {
22 PerlInterpreter *perl;
23
24 char *filename;
25
26 ngx_str_t redirect_uri;
27 ngx_str_t redirect_args;
28
29 ngx_http_ssi_ctx_t *ssi;
30 } ngx_http_perl_ctx_t;
31
32
33 extern ngx_module_t ngx_http_perl_module;
34
35
36 /*
37 * workaround for "unused variable `Perl___notused'" warning
38 * when building with perl 5.6.1
39 */
40 #ifndef PERL_IMPLICIT_CONTEXT
41 #undef dTHXa
42 #define dTHXa(a)
43 #endif
44
45
46 extern void boot_DynaLoader (pTHX_ CV* cv);
47
48
49 #endif /* _NGX_HTTP_PERL_MODULE_H_INCLUDED_ */