src/http/modules/xxslt/ngx_http_xxslt_selector.h File Reference

#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#include <libxml/tree.h>
#include <libxml/parser.h>
#include "ngx_http_xxslt_filter_module.h"
#include "ngx_http_xxslt_udata.h"
#include "ngx_http_xxslt_parse.h"

Go to the source code of this file.

Data Structures

struct  ngx_http_xxslt_selector_match_t
 Selector structure. More...
struct  ngx_http_xxslt_selector_data_t
 Selector data structure. More...

Defines

#define NGX_HTTP_XXSLT_MATCH_OPEN   1
#define NGX_HTTP_XXSLT_MATCH_CLOSE   2
#define NGX_HTTP_XXSLT_SELECTOR_UNKNOWN   3
#define NGX_HTTP_XXSLT_SELECTOR_PARSE   5

Functions

ngx_http_xxslt_selector_data_tngx_http_xxslt_selector_init (ngx_http_request_t *r)
 Allocates and initializes selector structure.
ngx_int_t ngx_http_xxslt_selector_add_data_chunk (ngx_http_xxslt_selector_data_t *sel_ctx, ngx_chain_t *in)
 Adds new data chunk to selector.
void ngx_http_xxslt_selector_log_chain (ngx_http_request_t *r, ngx_chain_t *cl, u_char *label)
 Helper function - writes chain to log-file.
void ngx_http_xxslt_selector_cleanup (ngx_http_xxslt_selector_data_t *sel_ctx)
 Frees all resources allocated by selector.

Define Documentation

#define NGX_HTTP_XXSLT_MATCH_CLOSE   2

Definition at line 36 of file ngx_http_xxslt_selector.h.

Referenced by ngx_http_xxslt_selector_add_data_chunk().

#define NGX_HTTP_XXSLT_MATCH_OPEN   1
#define NGX_HTTP_XXSLT_SELECTOR_PARSE   5
#define NGX_HTTP_XXSLT_SELECTOR_UNKNOWN   3

Function Documentation

ngx_int_t ngx_http_xxslt_selector_add_data_chunk ( ngx_http_xxslt_selector_data_t ctx,
ngx_chain_t *  in 
)
void ngx_http_xxslt_selector_cleanup ( ngx_http_xxslt_selector_data_t sel_ctx  ) 

Frees all resources allocated by selector.

Parameters:
sel_ctx selector structure

Definition at line 657 of file ngx_http_xxslt_selector.c.

References ngx_http_xxslt_selector_data_t::includes.

Referenced by ngx_http_xxslt_cleanup().

ngx_http_xxslt_selector_data_t* ngx_http_xxslt_selector_init ( ngx_http_request_t *  r  ) 
void ngx_http_xxslt_selector_log_chain ( ngx_http_request_t *  r,
ngx_chain_t *  cl,
u_char *  label 
)

Helper function - writes chain to log-file.

Parameters:
r nginx http request
cl chain link
label additional string that will appear in logs

Definition at line 343 of file ngx_http_xxslt_selector.c.


Generated on Mon Oct 12 14:03:36 2009 for XXSLT by  doxygen 1.6.1