Apache2
proxy_util.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 
17 #ifndef PROXY_UTIL_H_
18 #define PROXY_UTIL_H_
19 
33 
37 
42 
43 /*
44  * Get the busy counter from the shared worker memory
45  *
46  * @param worker Pointer to the worker structure.
47  * @return apr_size_t value atomically read for the worker.
48  */
50 
51 /*
52  * Set the busy counter from the shared worker memory
53  *
54  * @param worker Pointer to the worker structure.
55  * @param to value to set the busy counter.
56  * @return void
57  */
59 
60 /*
61  * decrement the busy counter from the shared worker memory
62  * note it is called by apr_pool_cleanup_register()
63  * therfore the void * and apr_status_t.
64  *
65  * @param worker_ Pointer to the worker structure.
66  * @return apr_status_t returns APR_SUCCESS.
67  */
69 
70 /*
71  * increment the busy counter from the shared worker memory
72  *
73  * @param worker Pointer to the worker structure.
74  * @return void
75  */
77 
80 #endif /* PROXY_UTIL_H_ */
PROXY_DECLARE_DATA const apr_strmatch_pattern * ap_proxy_strmatch_path
int ap_proxy_is_domainname(struct dirconn_entry *This, apr_pool_t *p)
apr_status_t ap_proxy_decrement_busy_count(void *worker_)
apr_size_t ap_proxy_get_busy_count(proxy_worker *worker)
int ap_proxy_is_ipaddr(struct dirconn_entry *This, apr_pool_t *p)
PROXY_DECLARE_DATA const apr_strmatch_pattern * ap_proxy_strmatch_domain
int ap_proxy_is_word(struct dirconn_entry *This, apr_pool_t *p)
PROXY_DECLARE_DATA int proxy_lb_workers
void ap_proxy_set_busy_count(proxy_worker *worker, apr_size_t to)
int ap_proxy_is_hostname(struct dirconn_entry *This, apr_pool_t *p)
void ap_proxy_increment_busy_count(proxy_worker *worker)
void proxy_util_register_hooks(apr_pool_t *p)
proxy_worker * worker
Definition: mod_proxy.h:657
int apr_status_t
Definition: apr_errno.h:44
size_t apr_size_t
Definition: apr.h:394
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
#define PROXY_DECLARE_DATA
Definition: macros.h:21
#define PROXY_DECLARE(x)
Definition: macros.h:10
Definition: apr_strmatch.h:43
Definition: mod_proxy.h:142
Definition: mod_proxy.h:504
apr_pool_t * p