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

    1: #ifndef _MOD_SSI_EXPR_H_
    2: #define _MOD_SSI_EXPR_H_
    3: #include "first.h"
    4: 
    5: #include "buffer.h"
    6: 
    7: typedef struct {
    8: 	enum { SSI_TYPE_UNSET, SSI_TYPE_BOOL, SSI_TYPE_STRING } type;
    9: 
   10: 	buffer *str;
   11: 	int     bo;
   12: } ssi_val_t;
   13: 
   14: typedef struct {
   15: 	int     ok;
   16: 
   17: 	ssi_val_t val;
   18: 
   19: 	void   *srv;
   20: } ssi_ctx_t;
   21: 
   22: typedef enum { SSI_COND_UNSET, SSI_COND_LE, SSI_COND_GE, SSI_COND_EQ, SSI_COND_NE, SSI_COND_LT, SSI_COND_GT } ssi_expr_cond;
   23: 
   24: void *ssiexprparserAlloc(void *(*mallocProc)(size_t));
   25: void ssiexprparserFree(void *p, void (*freeProc)(void*));
   26: void ssiexprparser(void *yyp, int yymajor, buffer *yyminor, ssi_ctx_t *ctx);
   27: 
   28: int ssi_val_tobool(ssi_val_t *B);
   29: ssi_val_t *ssi_val_init(void);
   30: void ssi_val_free(ssi_val_t *s);
   31: 
   32: #endif

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