Skip to content

Commit 4d2dade

Browse files
committed
Rearrange all the header includes
1 parent 07aac7b commit 4d2dade

15 files changed

Lines changed: 14 additions & 160 deletions

File tree

native/advertise/mod_advertise.h

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,38 +18,17 @@
1818

1919
#define CORE_PRIVATE
2020

21-
#include "apr_hooks.h"
22-
#include "apr.h"
23-
#include "apr_lib.h"
24-
#include "apr_strings.h"
25-
#include "apr_buckets.h"
2621
#include "apr_md5.h"
27-
#include "apr_network_io.h"
28-
#include "apr_pools.h"
2922
#include "apr_strings.h"
30-
#include "apr_uri.h"
31-
#include "apr_date.h"
3223
#include "apr_uuid.h"
33-
#include "apr_version.h"
34-
#include "apr_atomic.h"
3524

3625
#define APR_WANT_STRFUNC
3726
#include "apr_want.h"
3827

39-
#include "httpd.h"
40-
#include "http_config.h"
41-
#include "http_core.h"
4228
#include "http_protocol.h"
43-
#include "http_request.h"
44-
#include "http_vhost.h"
45-
#include "http_main.h"
4629
#include "http_log.h"
47-
#include "http_connection.h"
48-
#include "util_filter.h"
49-
#include "util_ebcdic.h"
5030
#include "util_time.h"
5131
#include "ap_provider.h"
52-
#include "ap_mpm.h"
5332

5433
#if APR_HAVE_NETINET_IN_H
5534
#include <netinet/in.h>

native/balancers/mod_lbmethod_cluster.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,9 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
#include "mod_proxy.h"
76
#include "mod_watchdog.h"
8-
#include "scoreboard.h"
9-
#include "ap_mpm.h"
10-
#include "apr_version.h"
11-
#include "ap_hooks.h"
12-
13-
#include "ap_slotmem.h"
14-
15-
#include "node.h"
16-
#include "host.h"
17-
#include "context.h"
18-
#include "balancer.h"
19-
207
#include "common.h"
218

22-
#include "mod_proxy_cluster.h"
239

2410
#define LB_CLUSTER_WATHCHDOG_NAME ("_lb_cluster_")
2511
static ap_watchdog_t *watchdog;

native/common/common.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,6 @@
55

66
#include "common.h"
77

8-
#include "httpd.h"
9-
#include "http_config.h"
10-
#include "http_log.h"
11-
#include "http_main.h"
12-
#include "http_request.h"
13-
#include "mod_proxy.h"
14-
15-
#include "ap_slotmem.h"
16-
17-
#include "domain.h"
18-
#include "node.h"
19-
#include "host.h"
20-
#include "context.h"
21-
#include "balancer.h"
22-
23-
#include "mod_proxy_cluster.h"
24-
25-
268
proxy_vhost_table *read_vhost_table(apr_pool_t *pool, struct host_storage_method *host_storage, int for_cache)
279
{
2810
proxy_vhost_table *vhost_table = apr_palloc(pool, sizeof(proxy_vhost_table));

native/include/common.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,7 @@
77
* Common routines
88
*/
99

10-
#include "mod_proxy.h"
1110

12-
#include "ap_slotmem.h"
13-
14-
#include "domain.h"
15-
#include "node.h"
16-
#include "host.h"
17-
#include "node.h"
18-
#include "context.h"
1911
#include "mod_proxy_cluster.h"
2012

2113

native/include/mod_proxy_cluster.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
*/
1818

1919
#include "balancer.h"
20+
#include "node.h"
21+
#include "context.h"
22+
#include "host.h"
2023

2124
#define MOD_CLUSTER_EXPOSED_VERSION "mod_cluster/2.0.0.Alpha1-SNAPSHOT"
2225

native/include/node.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ typedef struct mem mem_t;
2525

2626
#include "mod_clustersize.h"
2727

28-
#include "ap_mmn.h"
29-
3028
/**
3129
* Configuration of the node received from jboss cluster
3230
*/

native/mod_manager/balancer.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,6 @@
1313
* @{
1414
*/
1515

16-
#include "apr.h"
17-
#include "apr_strings.h"
18-
#include "apr_pools.h"
19-
#include "apr_time.h"
20-
21-
#include "ap_slotmem.h"
22-
#include "balancer.h"
23-
24-
#include "common.h"
2516

2617
#include "mod_manager.h"
2718

native/mod_manager/context.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,8 @@
1313
* @{
1414
*/
1515

16-
#include "apr.h"
17-
#include "apr_strings.h"
18-
#include "apr_pools.h"
19-
#include "apr_time.h"
20-
21-
#include "ap_slotmem.h"
22-
#include "context.h"
23-
2416
#include "mod_manager.h"
2517

26-
#include "common.h"
27-
2818

2919
static mem_t *create_attach_mem_context(char *string, unsigned *num, int type, int create, apr_pool_t *p,
3020
slotmem_storage_method *storage)

native/mod_manager/domain.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,8 @@
1212
* @{
1313
*/
1414

15-
#include "apr.h"
16-
#include "apr_strings.h"
17-
#include "apr_pools.h"
18-
#include "apr_time.h"
19-
20-
#include "ap_slotmem.h"
21-
#include "domain.h"
22-
23-
#include "common.h"
24-
2515
#include "mod_manager.h"
16+
#include "domain.h"
2617

2718
static mem_t *create_attach_mem_domain(char *string, unsigned *num, int type, int create, apr_pool_t *p,
2819
slotmem_storage_method *storage)

native/mod_manager/host.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,9 @@
1313
* @{
1414
*/
1515

16-
#include "apr.h"
17-
#include "apr_strings.h"
18-
#include "apr_pools.h"
19-
#include "apr_time.h"
20-
21-
#include "ap_slotmem.h"
16+
#include "mod_manager.h"
2217
#include "host.h"
2318

24-
#include "mod_manager.h"
25-
#include "common.h"
2619

2720
static mem_t *create_attach_mem_host(char *string, unsigned *num, int type, int create, apr_pool_t *p,
2821
slotmem_storage_method *storage)

0 commit comments

Comments
 (0)