File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / src / mod_ssi.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Nov 2 10:35:00 2016 UTC (7 years, 7 months ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_41p8, HEAD
lighttpd 1.4.41

#ifndef _MOD_SSI_H_
#define _MOD_SSI_H_
#include "first.h"

#include "base.h"
#include "buffer.h"
#include "array.h"

#include "plugin.h"

/* plugin config for all request/connections */

typedef struct {
	array *ssi_extension;
	buffer *content_type;
	unsigned short conditional_requests;
	unsigned short ssi_exec;
} plugin_config;

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);

#endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>