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
29
PROXY_DECLARE
(
int
)
ap_proxy_is_ipaddr
(
struct
dirconn_entry
*This,
apr_pool_t
*
p
);
30
PROXY_DECLARE
(
int
)
ap_proxy_is_domainname
(
struct
dirconn_entry
*This,
apr_pool_t
*
p
);
31
PROXY_DECLARE
(
int
)
ap_proxy_is_hostname
(
struct
dirconn_entry
*This,
apr_pool_t
*
p
);
32
PROXY_DECLARE
(
int
)
ap_proxy_is_word
(
struct
dirconn_entry
*This,
apr_pool_t
*
p
);
33
34
extern
PROXY_DECLARE_DATA
int
proxy_lb_workers
;
35
extern
PROXY_DECLARE_DATA
const
apr_strmatch_pattern
*
ap_proxy_strmatch_path
;
36
extern
PROXY_DECLARE_DATA
const
apr_strmatch_pattern
*
ap_proxy_strmatch_domain
;
37
41
void
proxy_util_register_hooks
(
apr_pool_t
*
p
);
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
*/
49
PROXY_DECLARE
(
apr_size_t
)
ap_proxy_get_busy_count
(
proxy_worker
*
worker
);
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
*/
58
PROXY_DECLARE
(
void
)
ap_proxy_set_busy_count
(
proxy_worker
*
worker
,
apr_size_t
to);
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
*/
68
PROXY_DECLARE
(
apr_status_t
)
ap_proxy_decrement_busy_count
(
void
*worker_);
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
*/
76
PROXY_DECLARE
(
void
)
ap_proxy_increment_busy_count
(
proxy_worker
*
worker
);
77
80
#endif
/* PROXY_UTIL_H_ */
ap_proxy_strmatch_path
PROXY_DECLARE_DATA const apr_strmatch_pattern * ap_proxy_strmatch_path
ap_proxy_is_domainname
int ap_proxy_is_domainname(struct dirconn_entry *This, apr_pool_t *p)
ap_proxy_decrement_busy_count
apr_status_t ap_proxy_decrement_busy_count(void *worker_)
ap_proxy_get_busy_count
apr_size_t ap_proxy_get_busy_count(proxy_worker *worker)
ap_proxy_is_ipaddr
int ap_proxy_is_ipaddr(struct dirconn_entry *This, apr_pool_t *p)
ap_proxy_strmatch_domain
PROXY_DECLARE_DATA const apr_strmatch_pattern * ap_proxy_strmatch_domain
ap_proxy_is_word
int ap_proxy_is_word(struct dirconn_entry *This, apr_pool_t *p)
proxy_lb_workers
PROXY_DECLARE_DATA int proxy_lb_workers
ap_proxy_set_busy_count
void ap_proxy_set_busy_count(proxy_worker *worker, apr_size_t to)
ap_proxy_is_hostname
int ap_proxy_is_hostname(struct dirconn_entry *This, apr_pool_t *p)
ap_proxy_increment_busy_count
void ap_proxy_increment_busy_count(proxy_worker *worker)
proxy_util_register_hooks
void proxy_util_register_hooks(apr_pool_t *p)
worker
proxy_worker * worker
Definition:
mod_proxy.h:657
apr_status_t
int apr_status_t
Definition:
apr_errno.h:44
apr_size_t
size_t apr_size_t
Definition:
apr.h:394
apr_pool_t
struct apr_pool_t apr_pool_t
Definition:
apr_pools.h:60
PROXY_DECLARE_DATA
#define PROXY_DECLARE_DATA
Definition:
macros.h:21
PROXY_DECLARE
#define PROXY_DECLARE(x)
Definition:
macros.h:10
apr_strmatch_pattern
Definition:
apr_strmatch.h:43
dirconn_entry
Definition:
mod_proxy.h:142
proxy_worker
Definition:
mod_proxy.h:504
p
apr_pool_t * p
modules
proxy
proxy_util.h
Generated by
1.9.1