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 typedef struct ap_directive_t ap_directive_t; 00032 00042 struct ap_directive_t { 00044 const char *directive; 00047 const char *args; 00050 struct ap_directive_t *next; 00053 struct ap_directive_t *first_child; 00056 struct ap_directive_t *parent; 00057 00059 void *data; 00060 00061 /* ### these may go away in the future, but are needed for now */ 00063 const char *filename; 00065 int line_num; 00066 }; 00067 00072 AP_DECLARE_DATA extern ap_directive_t *ap_conftree; 00073 00083 ap_directive_t *ap_add_node(ap_directive_t **parent, ap_directive_t *current, 00084 ap_directive_t *toadd, int child); 00085 00086 #endif 00087