This file contains definitions of log-related functions, structures,
and macros.
- Copyright (C) 2000-2006 Willy Tarreau - w@1wt.eu
+ Copyright (C) 2000-2008 Willy Tarreau - w@1wt.eu
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
* Displays the message on stderr with the date and pid. Overrides the quiet
* mode during startup.
*/
-void Alert(char *fmt, ...);
+void Alert(const char *fmt, ...);
/*
* Displays the message on stderr with the date and pid.
*/
-void Warning(char *fmt, ...);
+void Warning(const char *fmt, ...);
/*
* Displays the message on <out> only if quiet mode is not set.
*/
-void qfprintf(FILE *out, char *fmt, ...);
+void qfprintf(FILE *out, const char *fmt, ...);
/*
* This function sends a syslog message to both log servers of a proxy,
* It also tries not to waste too much time computing the message header.
* It doesn't care about errors nor does it report them.
*/
-void send_log(struct proxy *p, int level, char *message, ...);
+void send_log(struct proxy *p, int level, const char *message, ...);
/*
* send a log for the session when we have enough info about it
#include <proto/acl.h>
-#include <types/acl.h>
-#include <types/proxy.h>
-#include <types/session.h>
-
/* List head of all known ACL keywords */
static struct acl_kw_list acl_keywords = {
.list = LIST_HEAD_INIT(acl_keywords.list)
#include <common/ticks.h>
#include <common/time.h>
-#include <types/buffers.h>
#include <types/global.h>
-#include <types/proxy.h>
-#include <types/server.h>
+#include <proto/proxy.h>
#include <proto/task.h>
static struct task *appsess_refresh = NULL;
#include <common/ticks.h>
#include <common/time.h>
-#include <types/acl.h>
-#include <types/buffers.h>
#include <types/global.h>
-#include <types/polling.h>
-#include <types/proxy.h>
-#include <types/server.h>
-#include <types/session.h>
#include <proto/acl.h>
#include <proto/backend.h>
#include <types/capture.h>
#include <types/global.h>
-#include <types/httperr.h>
#include <types/polling.h>
-#include <types/proxy.h>
-#include <types/queue.h>
#include <proto/acl.h>
#include <proto/backend.h>
#include <common/time.h>
#include <types/global.h>
-#include <types/polling.h>
-#include <types/proxy.h>
-#include <types/session.h>
#include <proto/backend.h>
#include <proto/buffers.h>
#include <common/config.h>
#include <common/time.h>
-#include <types/acl.h>
-#include <types/backend.h>
-#include <types/buffers.h>
#include <types/global.h>
-#include <types/httperr.h>
-#include <types/polling.h>
-#include <types/proxy.h>
-#include <types/server.h>
-#include <types/session.h>
#include <proto/acl.h>
#include <proto/buffers.h>
* Functions for managing transparent proxying with CTTPROXY.
* This file should be compiled only if CTTPROXY is enabled.
*
- * Copyright 2000-2007 Willy Tarreau <w@1wt.eu>
+ * Copyright 2000-2008 Willy Tarreau <w@1wt.eu>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
#include <common/config.h>
#include <common/time.h>
-#include <types/global.h>
-
#include <import/ip_tproxy.h>
/*
#include <common/version.h>
#include <types/global.h>
-#include <types/polling.h>
-#include <types/proxy.h>
-#include <types/server.h>
#include <proto/backend.h>
#include <proto/buffers.h>
#include <types/fd.h>
#include <types/global.h>
-#include <proto/fd.h>
#include <proto/task.h>
#if defined(USE_MY_EPOLL)
#include <common/time.h>
#include <common/tools.h>
-#include <types/fd.h>
#include <types/global.h>
#include <proto/fd.h>
#include <common/ticks.h>
#include <common/time.h>
-#include <types/fd.h>
#include <types/global.h>
#include <proto/fd.h>
#include <common/ticks.h>
#include <common/time.h>
-#include <types/fd.h>
#include <types/global.h>
#include <proto/fd.h>
#include <common/time.h>
#include <common/tools.h>
-#include <types/fd.h>
#include <types/global.h>
#include <proto/fd.h>
/*
* File descriptors management functions.
*
- * Copyright 2000-2007 Willy Tarreau <w@1wt.eu>
+ * Copyright 2000-2008 Willy Tarreau <w@1wt.eu>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
#include <common/compat.h>
#include <common/config.h>
-#include <types/fd.h>
-#include <types/global.h>
+//#include <types/global.h>
#include <proto/fd.h>
#include <types/capture.h>
#include <types/global.h>
-#include <types/httperr.h>
#include <types/polling.h>
-#include <types/proto_http.h>
#include <proto/acl.h>
#include <proto/backend.h>
/*
* Header indexation functions.
*
- * Copyright 2000-2006 Willy Tarreau <w@1wt.eu>
+ * Copyright 2000-2008 Willy Tarreau <w@1wt.eu>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
*/
#include <common/config.h>
-#include <types/hdr_idx.h>
+#include <proto/hdr_idx.h>
/*
#include <common/standard.h>
#include <common/time.h>
-#include <types/backend.h>
#include <types/global.h>
-#include <types/log.h>
-#include <types/session.h>
+
+#include <proto/log.h>
#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL (0)
#include <common/uri_auth.h>
#include <common/version.h>
-#include <types/acl.h>
#include <types/capture.h>
#include <types/global.h>
-#include <types/httperr.h>
-#include <types/polling.h>
-#include <types/proxy.h>
-#include <types/server.h>
#include <proto/acl.h>
#include <proto/backend.h>
#include <common/time.h>
#include <common/version.h>
-#include <types/acl.h>
#include <types/global.h>
-#include <types/polling.h>
-#include <types/proxy.h>
-#include <types/server.h>
#include <proto/acl.h>
#include <proto/backend.h>
#include <common/time.h>
#include <common/version.h>
-#include <types/acl.h>
-#include <types/capture.h>
#include <types/global.h>
-#include <types/polling.h>
-#include <types/proxy.h>
-#include <types/server.h>
#include <proto/acl.h>
#include <proto/backend.h>
/*
* Protocol registration functions.
*
- * Copyright 2000-2007 Willy Tarreau <w@1wt.eu>
+ * Copyright 2000-2008 Willy Tarreau <w@1wt.eu>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
#include <common/mini-clist.h>
#include <common/standard.h>
-#include <types/protocols.h>
-
#include <proto/fd.h>
/* List head of all registered protocols */
#include <common/time.h>
#include <types/global.h>
-#include <types/polling.h>
#include <proto/client.h>
#include <proto/backend.h>
#include <common/memory.h>
#include <common/time.h>
-#include <types/proxy.h>
-#include <types/session.h>
-
#include <proto/queue.h>
#include <proto/server.h>
#include <proto/task.h>
#include <common/time.h>
#include <common/version.h>
-#include <types/global.h>
-#include <types/polling.h>
-#include <types/proxy.h>
-#include <types/server.h>
-
#include <proto/backend.h>
#include <proto/buffers.h>
#include <proto/fd.h>
#include <common/config.h>
#include <common/time.h>
-#include <types/backend.h>
-#include <types/proxy.h>
-#include <types/server.h>
+#include <proto/server.h>
int srv_downtime(struct server *s) {
#include <common/debug.h>
#include <common/memory.h>
-#include <types/backend.h>
#include <types/capture.h>
-#include <types/log.h>
-#include <types/proxy.h>
-#include <types/server.h>
#include <proto/buffers.h>
#include <proto/hdr_idx.h>
#include <common/ticks.h>
#include <common/time.h>
-#include <types/buffers.h>
-#include <types/global.h>
-#include <types/polling.h>
-
#include <proto/client.h>
#include <proto/fd.h>
#include <proto/stream_sock.h>
#include <proto/proxy.h>
#include <proto/task.h>
-#include <types/task.h>
struct pool_head *pool2_task;