2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 /***************************************************************************
19 * Description: Context Stuff (Autoconf) *
20 * Author: Henri Gomez <hgomez@apache.org> *
21 * Version: $Revision: 466585 $ *
22 ***************************************************************************/
31 #endif /* __cplusplus */
33 #define CBASE_INC_SIZE (8) /* Allocate memory by step of 8 URIs : ie 8 URI by context */
34 #define URI_INC_SIZE (8) /* Allocate memory by step of 8 CONTEXTs : ie 8 contexts by worker */
40 * Context base (ie examples)
80 jk_pool_atom_t buf[SMALL_POOL_SIZE];
83 * Virtual Server (if use)
89 * Num of context handled (ie: examples, admin...)
101 * Context list, context / URIs
104 jk_context_item_t **contexts;
110 * functions defined here
113 int context_set_virtual(jk_context_t *c, char *virt);
115 int context_open(jk_context_t *c, char *virt);
117 int context_close(jk_context_t *c);
119 int context_alloc(jk_context_t **c, char *virt);
121 int context_free(jk_context_t **c);
123 jk_context_item_t *context_find_base(jk_context_t *c, char *cbase);
125 char *context_item_find_uri(jk_context_item_t *ci, char *uri);
127 void context_dump_uris(jk_context_t *c, char *cbase, FILE * f);
129 jk_context_item_t *context_add_base(jk_context_t *c, char *cbase);
131 int context_add_uri(jk_context_t *c, char *cbase, char *uri);
136 #endif /* __cplusplus */
138 #endif /* JK_CONTEXT_H */