mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-12-07 18:51:21 +01:00
MINOR: includes: fix a lot of missing or useless includes
These modifications are done for resolving cross-dependent includes in the upcoming LUA code. <proto/channel.h> misses <types/channel.h>. <types/acl.h> doesn't use <types/session.h> because the session is already declared in the file as undefined pointer. appsession.c misses <unistd.h> to use "write()". Declare undefined pointer "struct session" for <types/proxy.h> and <types/queue.h>. These includes dont need the detail of this struct.
This commit is contained in:
parent
49f45af9aa
commit
ac836baad1
@ -32,6 +32,7 @@
|
||||
#include <common/ticks.h>
|
||||
#include <common/time.h>
|
||||
|
||||
#include <types/channel.h>
|
||||
#include <types/global.h>
|
||||
|
||||
extern struct pool_head *pool2_channel;
|
||||
|
||||
@ -31,7 +31,6 @@
|
||||
#include <types/pattern.h>
|
||||
#include <types/proxy.h>
|
||||
#include <types/server.h>
|
||||
#include <types/session.h>
|
||||
|
||||
#include <ebmbtree.h>
|
||||
|
||||
|
||||
@ -46,7 +46,6 @@
|
||||
#include <types/obj_type.h>
|
||||
#include <types/proto_http.h>
|
||||
#include <types/sample.h>
|
||||
#include <types/session.h>
|
||||
#include <types/server.h>
|
||||
#include <types/stick_table.h>
|
||||
|
||||
@ -186,6 +185,8 @@ enum pr_mode {
|
||||
#define STK_IS_STORE 0x00000002 /* store on request fetch */
|
||||
#define STK_ON_RSP 0x00000004 /* store on response fetch */
|
||||
|
||||
struct session;
|
||||
|
||||
struct error_snapshot {
|
||||
struct timeval when; /* date of this event, (tv_sec == 0) means "never" */
|
||||
unsigned int len; /* original length of the last invalid request/response */
|
||||
|
||||
@ -26,7 +26,8 @@
|
||||
#include <common/mini-clist.h>
|
||||
|
||||
#include <types/server.h>
|
||||
#include <types/session.h>
|
||||
|
||||
struct session;
|
||||
|
||||
struct pendconn {
|
||||
struct list list; /* chaining ... */
|
||||
|
||||
@ -13,6 +13,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <common/appsession.h>
|
||||
#include <common/config.h>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user