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 |
* Originally developed by Aaron Bannert and Justin Erenkrantz, eBuilt. |
17 |
*/ |
18 |
|
19 |
#ifndef __FLOOD_ROUND_ROBIN_H |
20 |
#define __FLOOD_ROUND_ROBIN_H |
21 |
|
22 |
apr_status_t round_robin_profile_init(profile_t **profile, |
23 |
config_t *config, |
24 |
const char *profile_name, |
25 |
apr_pool_t *pool); |
26 |
apr_status_t round_robin_get_next_url(request_t **request, |
27 |
profile_t *profile); |
28 |
apr_status_t round_robin_create_req(profile_t *profile, |
29 |
request_t *request); |
30 |
apr_status_t round_robin_postprocess(profile_t *profile, |
31 |
request_t *req, |
32 |
response_t *resp); |
33 |
apr_status_t verify_200(int *verified, |
34 |
profile_t *profile, |
35 |
request_t *req, |
36 |
response_t *resp); |
37 |
apr_status_t verify_status_code(int *verified, |
38 |
profile_t *profile, |
39 |
request_t *req, |
40 |
response_t *resp); |
41 |
int round_robin_loop_condition(profile_t *profile); |
42 |
apr_status_t round_robin_profile_destroy(profile_t *profile); |
43 |
|
44 |
#endif /* __FLOOD_ROUND_ROBIN_H */ |