Apache2
util_cfgtree.h
Go to the documentation of this file.
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
26 #ifndef AP_CONFTREE_H
27 #define AP_CONFTREE_H
28 
29 #include "ap_config.h"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 typedef struct ap_directive_t ap_directive_t;
36 
48  const char *directive;
51  const char *args;
58 
60  void *data;
61 
62  /* ### these may go away in the future, but are needed for now */
64  const char *filename;
66  int line_num;
67 
74 };
75 
80 
91  ap_directive_t *toadd, int child);
92 
93 #ifdef __cplusplus
94 }
95 #endif
96 
97 #endif
Symbol export macros and hook functions.
ap_directive_t * ap_add_node(ap_directive_t **parent, ap_directive_t *current, ap_directive_t *toadd, int child)
AP_DECLARE_DATA ap_directive_t * ap_conftree
#define AP_DECLARE_DATA
Definition: macros.h:15
Structure used to build the config tree.
Definition: util_cfgtree.h:46
void * data
Definition: util_cfgtree.h:60
struct ap_directive_t * next
Definition: util_cfgtree.h:53
struct ap_directive_t * parent
Definition: util_cfgtree.h:57
const char * filename
Definition: util_cfgtree.h:64
int line_num
Definition: util_cfgtree.h:66
struct ap_directive_t * first_child
Definition: util_cfgtree.h:55
const char * args
Definition: util_cfgtree.h:51
const char * directive
Definition: util_cfgtree.h:48
struct ap_directive_t * last
Definition: util_cfgtree.h:73