"Fossies" - the Fresh Open Source Software Archive

Member "lighttpd-1.4.54/src/mod_ssi.h" (27 May 2019, 896 Bytes) of package /linux/www/lighttpd-1.4.54.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "mod_ssi.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 1.4.49_vs_1.4.50.

    1 #ifndef _MOD_SSI_H_
    2 #define _MOD_SSI_H_
    3 #include "first.h"
    4 
    5 #include "base_decls.h"
    6 #include "buffer.h"
    7 #include "array.h"
    8 
    9 #include "plugin.h"
   10 
   11 /* plugin config for all request/connections */
   12 
   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;
   20 
   21 typedef struct {
   22     PLUGIN_DATA;
   23 
   24     buffer *timefmt;
   25 
   26     buffer *stat_fn;
   27 
   28     array *ssi_vars;
   29     array *ssi_cgi_env;
   30 
   31     plugin_config **config_storage;
   32 
   33     plugin_config conf;
   34 } plugin_data;
   35 
   36 typedef struct {
   37     buffer *timefmt;
   38     int sizefmt;
   39 
   40     buffer *stat_fn;
   41 
   42     array *ssi_vars;
   43     array *ssi_cgi_env;
   44 
   45     int if_level, if_is_false_level, if_is_false, if_is_false_endif;
   46     unsigned short ssi_recursion_depth;
   47 
   48     plugin_config conf;
   49 } handler_ctx;
   50 
   51 int ssi_eval_expr(server *srv, connection *con, handler_ctx *p, const char *expr);
   52 
   53 #endif