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.
#include <common/ticks.h>
#include <common/time.h>
+#include <types/channel.h>
#include <types/global.h>
extern struct pool_head *pool2_channel;
#include <types/pattern.h>
#include <types/proxy.h>
#include <types/server.h>
-#include <types/session.h>
#include <ebmbtree.h>
#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>
#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 */
#include <common/mini-clist.h>
#include <types/server.h>
-#include <types/session.h>
+
+struct session;
struct pendconn {
struct list list; /* chaining ... */
#include <stdio.h>
#include <string.h>
+#include <unistd.h>
#include <common/appsession.h>
#include <common/config.h>