summaryrefslogtreecommitdiff
path: root/src/mod_ssi.h
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2016-12-06 00:25:56 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2016-12-06 13:32:29 -0500
commit83ec97a05414c07d64c4baee4879bbaa343eb65e (patch)
tree485948523497c8fee5b87be45c3c4512d098ccdd /src/mod_ssi.h
parentac9822f468cc316f4d5335d6c705dd3b366538ff (diff)
downloadlighttpd1.4-83ec97a05414c07d64c4baee4879bbaa343eb65e.tar.gz
lighttpd1.4-83ec97a05414c07d64c4baee4879bbaa343eb65e.zip
[mod_ssi] produce content in subrequest hook
(prerequisite for future mod_ssi enhancements) This commit also addresses the concern that mod_geoip would (previously) need to be listed in modules prior to mod_ssi. x-ref: https://github.com/lighttpd/lighttpd1.4/pull/73
Diffstat (limited to 'src/mod_ssi.h')
-rw-r--r--src/mod_ssi.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/mod_ssi.h b/src/mod_ssi.h
index 9ce88c16..7ed63f5b 100644
--- a/src/mod_ssi.h
+++ b/src/mod_ssi.h
@@ -21,20 +21,31 @@ typedef struct {
PLUGIN_DATA;
buffer *timefmt;
- int sizefmt;
buffer *stat_fn;
array *ssi_vars;
array *ssi_cgi_env;
- int if_level, if_is_false_level, if_is_false, if_is_false_endif;
-
plugin_config **config_storage;
plugin_config conf;
} plugin_data;
-int ssi_eval_expr(server *srv, connection *con, plugin_data *p, const char *expr);
+typedef struct {
+ buffer *timefmt;
+ int sizefmt;
+
+ buffer *stat_fn;
+
+ array *ssi_vars;
+ array *ssi_cgi_env;
+
+ int if_level, if_is_false_level, if_is_false, if_is_false_endif;
+
+ plugin_config conf;
+} handler_ctx;
+
+int ssi_eval_expr(server *srv, connection *con, handler_ctx *p, const char *expr);
#endif