[core] consolidate backend network write handlers
[lighttpd.git] / src / mod_ssi.h
blobc4dd5048a0238ece56a53c12ce9db168c554e3e6
1 #ifndef _MOD_SSI_H_
2 #define _MOD_SSI_H_
3 #include "first.h"
5 #include "base.h"
6 #include "buffer.h"
7 #include "array.h"
9 #include "plugin.h"
11 /* plugin config for all request/connections */
13 typedef struct {
14 array *ssi_extension;
15 buffer *content_type;
16 unsigned short conditional_requests;
17 unsigned short ssi_exec;
18 unsigned short ssi_recursion_max;
19 } plugin_config;
21 typedef struct {
22 PLUGIN_DATA;
24 buffer *timefmt;
26 buffer *stat_fn;
28 array *ssi_vars;
29 array *ssi_cgi_env;
31 plugin_config **config_storage;
33 plugin_config conf;
34 } plugin_data;
36 typedef struct {
37 buffer *timefmt;
38 int sizefmt;
40 buffer *stat_fn;
42 array *ssi_vars;
43 array *ssi_cgi_env;
45 int if_level, if_is_false_level, if_is_false, if_is_false_endif;
46 unsigned short ssi_recursion_depth;
48 plugin_config conf;
49 } handler_ctx;
51 int ssi_eval_expr(server *srv, connection *con, handler_ctx *p, const char *expr);
53 #endif