Main Page | Modules | Namespace List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

util_cfgtree.h

Go to the documentation of this file.
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 AP_CONFTREE_H
00027 #define AP_CONFTREE_H
00028 
00029 #include "ap_config.h"
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034 
00035 typedef struct ap_directive_t ap_directive_t;
00036 
00046 struct ap_directive_t {
00048     const char *directive;
00051     const char *args;
00054     struct ap_directive_t *next;
00057     struct ap_directive_t *first_child;
00060     struct ap_directive_t *parent;
00061 
00063     void *data;
00064 
00065     /* ### these may go away in the future, but are needed for now */
00067     const char *filename;
00069     int line_num;
00070 };
00071 
00076 AP_DECLARE_DATA extern ap_directive_t *ap_conftree;
00077 
00087 ap_directive_t *ap_add_node(ap_directive_t **parent, ap_directive_t *current, 
00088                             ap_directive_t *toadd, int child);
00089 
00090 #ifdef __cplusplus
00091 }
00092 #endif
00093 
00094 #endif
00095 

© sourcejam.com 2005-2008