/usr/src/redhat/BUILD/httpd-2.2.3/modules/filters/mod_include.h

説明を見る。
00001 /* Licensed to the Apache Software Foundation (ASF) under one or more
00002  * contributor license agreements.  See the NOTICE file distributed with
00003  * this work for additional information regarding copyright ownership.
00004  * The ASF licenses this file to You under the Apache License, Version 2.0
00005  * (the "License"); you may not use this file except in compliance with
00006  * the License.  You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00026 #ifndef _MOD_INCLUDE_H
00027 #define _MOD_INCLUDE_H 1
00028 
00029 #include "apr_pools.h"
00030 #include "apr_optional.h"
00031 
00032 /*
00033  * Constants used for ap_ssi_get_tag_and_value's decode parameter
00034  */
00035 #define SSI_VALUE_DECODED 1
00036 #define SSI_VALUE_RAW     0
00037 
00038 /*
00039  * Constants used for ap_ssi_parse_string's leave_name parameter
00040  */
00041 #define SSI_EXPAND_LEAVE_NAME 1
00042 #define SSI_EXPAND_DROP_NAME  0
00043 
00044 /*
00045  * This macro creates a bucket which contains an error message and appends it
00046  * to the current pass brigade
00047  */
00048 #define SSI_CREATE_ERROR_BUCKET(ctx, f, bb) APR_BRIGADE_INSERT_TAIL((bb), \
00049     apr_bucket_pool_create(apr_pstrdup((ctx)->pool, (ctx)->error_str),    \
00050                            strlen((ctx)->error_str), (ctx)->pool,         \
00051                            (f)->c->bucket_alloc))
00052 
00053 /*
00054  * These constants are used to set or clear flag bits.
00055  */
00056 #define SSI_FLAG_PRINTING         (1<<0)  /* Printing conditional lines. */
00057 #define SSI_FLAG_COND_TRUE        (1<<1)  /* Conditional eval'd to true. */
00058 #define SSI_FLAG_SIZE_IN_BYTES    (1<<2)  /* Sizes displayed in bytes.   */
00059 #define SSI_FLAG_NO_EXEC          (1<<3)  /* No Exec in current context. */
00060 
00061 #define SSI_FLAG_SIZE_ABBREV      (~(SSI_FLAG_SIZE_IN_BYTES))
00062 #define SSI_FLAG_CLEAR_PRINT_COND (~((SSI_FLAG_PRINTING) | \
00063                                      (SSI_FLAG_COND_TRUE)))
00064 #define SSI_FLAG_CLEAR_PRINTING   (~(SSI_FLAG_PRINTING))
00065 
00066 /*
00067  * The public SSI context structure
00068  */
00069 typedef struct {
00070     /* permanent pool, use this for creating bucket data */
00071     apr_pool_t  *pool;
00072 
00073     /* temp pool; will be cleared after the execution of every directive */
00074     apr_pool_t  *dpool;
00075 
00076     /* See the SSI_FLAG_XXXXX definitions. */
00077     int          flags;
00078 
00079     /* nesting of *invisible* ifs */
00080     int          if_nesting_level;
00081 
00082     /* if true, the current buffer will be passed down the filter chain before
00083      * continuing with next input bucket and the variable will be reset to
00084      * false.
00085      */
00086     int          flush_now;
00087 
00088     /* argument counter (of the current directive) */
00089     unsigned     argc;
00090 
00091     /* currently configured error string */
00092     const char  *error_str;
00093 
00094     /* currently configured time format */
00095     const char  *time_str;
00096 
00097     /* pointer to internal (non-public) data, don't touch */
00098     struct ssi_internal_ctx *intern;
00099 } include_ctx_t;
00100 
00101 typedef apr_status_t (include_handler_fn_t)(include_ctx_t *, ap_filter_t *,
00102                                             apr_bucket_brigade *);
00103 
00104 APR_DECLARE_OPTIONAL_FN(void, ap_ssi_get_tag_and_value,
00105                         (include_ctx_t *ctx, char **tag, char **tag_val,
00106                          int dodecode));
00107 
00108 APR_DECLARE_OPTIONAL_FN(char*, ap_ssi_parse_string,
00109                         (include_ctx_t *ctx, const char *in, char *out,
00110                          apr_size_t length, int leave_name));
00111 
00112 APR_DECLARE_OPTIONAL_FN(void, ap_register_include_handler, 
00113                         (char *tag, include_handler_fn_t *func));
00114 
00115 #endif /* MOD_INCLUDE */
00116 

Apacheに対してSun Jul 19 22:05:23 2009に生成されました。  doxygen 1.4.7