--- /dev/null
+/*
+ * include/haproxy/queue-t.h
+ * This file defines variables and structures needed for queues.
+ *
+ * Copyright (C) 2000-2020 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
+ * License as published by the Free Software Foundation, version 2.1
+ * exclusively.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef _HAPROXY_QUEUE_T_H
+#define _HAPROXY_QUEUE_T_H
+
+#include <import/eb32tree.h>
+#include <haproxy/api-t.h>
+
+struct proxy;
+struct server;
+struct stream;
+
+struct pendconn {
+ int strm_flags; /* stream flags */
+ unsigned int queue_idx; /* value of proxy/server queue_idx at time of enqueue */
+ struct stream *strm;
+ struct proxy *px;
+ struct server *srv; /* the server we are waiting for, may be NULL if don't care */
+ struct server *target; /* the server that was assigned, = srv except if srv==NULL */
+ struct eb32_node node;
+};
+
+#endif /* _HAPROXY_QUEUE_T_H */
+
+/*
+ * Local variables:
+ * c-indent-level: 8
+ * c-basic-offset: 8
+ * End:
+ */
/*
- * include/proto/queue.h
+ * include/haproxy/queue.h
* This file defines everything related to queues.
*
- * Copyright (C) 2000-2012 Willy Tarreau - w@1wt.eu
+ * Copyright (C) 2000-2020 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
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef _PROTO_QUEUE_H
-#define _PROTO_QUEUE_H
+#ifndef _HAPROXY_QUEUE_H
+#define _HAPROXY_QUEUE_H
#include <haproxy/backend.h>
#include <haproxy/api.h>
#include <haproxy/pool.h>
#include <haproxy/proxy-t.h>
-
-#include <types/queue.h>
-#include <types/stream.h>
+#include <haproxy/queue-t.h>
#include <types/server.h>
+#include <types/stream.h>
extern struct pool_head *pool_head_pendconn;
}
-#endif /* _PROTO_QUEUE_H */
+#endif /* _HAPROXY_QUEUE_H */
/*
* Local variables:
#include <haproxy/proxy-t.h>
#include <haproxy/task.h>
#include <haproxy/time.h>
-#include <types/queue.h>
#include <types/server.h>
-#include <proto/queue.h>
#include <haproxy/freq_ctr.h>
#include <haproxy/fd.h>
#include <haproxy/freq_ctr.h>
#include <haproxy/obj_type.h>
-#include <proto/queue.h>
+#include <haproxy/queue.h>
#include <haproxy/stick_table.h>
#include <haproxy/task.h>
#include <haproxy/trace.h>
+++ /dev/null
-/*
- include/types/queue.h
- This file defines variables and structures needed for queues.
-
- Copyright (C) 2000-2006 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
- License as published by the Free Software Foundation, version 2.1
- exclusively.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with this library; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-*/
-
-#ifndef _TYPES_QUEUE_H
-#define _TYPES_QUEUE_H
-
-#include <haproxy/api-t.h>
-#include <haproxy/list-t.h>
-
-#include <types/server.h>
-
-struct stream;
-
-struct pendconn {
- int strm_flags; /* stream flags */
- unsigned int queue_idx; /* value of proxy/server queue_idx at time of enqueue */
- struct stream *strm;
- struct proxy *px;
- struct server *srv; /* the server we are waiting for, may be NULL if don't care */
- struct server *target; /* the server that was assigned, = srv except if srv==NULL */
- struct eb32_node node;
-};
-
-#endif /* _TYPES_QUEUE_H */
-
-/*
- * Local variables:
- * c-indent-level: 8
- * c-basic-offset: 8
- * End:
- */
#include <haproxy/connection-t.h>
#include <haproxy/freq_ctr-t.h>
-#include <types/queue.h>
#include <haproxy/task-t.h>
#include <haproxy/list-t.h>
#include <haproxy/obj_type-t.h>
#include <haproxy/proxy-t.h>
+#include <haproxy/queue-t.h>
#include <haproxy/session-t.h>
#include <haproxy/stream_interface-t.h>
#include <haproxy/vars-t.h>
-#include <types/queue.h>
#include <types/server.h>
#include <haproxy/task-t.h>
#include <haproxy/stick_table-t.h>
#include <haproxy/obj_type.h>
#include <haproxy/payload.h>
#include <haproxy/proxy.h>
+#include <haproxy/queue.h>
#include <haproxy/session.h>
#include <haproxy/ssl_sock.h>
#include <haproxy/stream_interface.h>
#include <haproxy/arg.h>
#include <haproxy/protocol.h>
#include <haproxy/proto_tcp.h>
-#include <proto/queue.h>
#include <haproxy/sample.h>
#include <proto/server.h>
#include <proto/stream.h>
#include <haproxy/dns.h>
#include <haproxy/istbuf.h>
#include <haproxy/list.h>
+#include <haproxy/queue.h>
#include <haproxy/regex.h>
#include <haproxy/tools.h>
#include <haproxy/time.h>
#include <haproxy/arg.h>
#include <haproxy/fd.h>
-#include <proto/queue.h>
#include <haproxy/port_range.h>
#include <haproxy/proto_tcp.h>
#include <haproxy/protocol.h>
#include <haproxy/arg.h>
#include <haproxy/fd.h>
#include <haproxy/protocol.h>
-#include <proto/queue.h>
#include <proto/server.h>
#include <proto/stream.h>
#include <haproxy/vars.h>
#include <haproxy/arg.h>
-#include <proto/queue.h>
#include <proto/server.h>
#include <proto/stream.h>
#include <haproxy/backend.h>
#include <haproxy/api.h>
+#include <haproxy/queue.h>
#include <haproxy/tools.h>
#include <import/eb32tree.h>
#include <types/server.h>
-#include <proto/queue.h>
/* Return next tree node after <node> which must still be in the tree, or be
* NULL. Lookup wraps around the end to the beginning. If the next node is the
#include <haproxy/backend.h>
#include <haproxy/api.h>
+#include <haproxy/queue.h>
#include <import/eb32tree.h>
#include <types/server.h>
-#include <proto/queue.h>
/* Remove a server from a tree. It must have previously been dequeued. This
#include <haproxy/backend.h>
#include <haproxy/api.h>
+#include <haproxy/queue.h>
#include <import/eb32tree.h>
#include <types/server.h>
-#include <proto/queue.h>
/* Remove a server from a tree. It must have previously been dequeued. This
#include <haproxy/backend.h>
#include <haproxy/api.h>
+#include <haproxy/queue.h>
#include <import/eb32tree.h>
#include <types/server.h>
-#include <proto/queue.h>
static inline void fwrr_remove_from_tree(struct server *s);
static inline void fwrr_queue_by_weight(struct eb_root *root, struct server *s);
#include <haproxy/backend.h>
#include <haproxy/api.h>
#include <haproxy/lb_map.h>
+#include <haproxy/queue.h>
#include <import/eb32tree.h>
#include <types/server.h>
-#include <proto/queue.h>
/* this function updates the map according to server <srv>'s new state.
*
#include <haproxy/api.h>
#include <haproxy/http_rules.h>
#include <haproxy/pool.h>
+#include <haproxy/queue.h>
#include <haproxy/sample.h>
#include <haproxy/stream_interface.h>
#include <haproxy/task.h>
#include <haproxy/thread.h>
#include <import/eb32tree.h>
-#include <proto/queue.h>
#include <proto/server.h>
#include <proto/stream.h>
#include <haproxy/errors.h>
#include <haproxy/global.h>
#include <haproxy/namespace.h>
+#include <haproxy/queue.h>
#include <haproxy/sample.h>
#include <haproxy/stats-t.h>
#include <haproxy/stream_interface.h>
#include <haproxy/port_range.h>
#include <haproxy/protocol.h>
-#include <proto/queue.h>
#include <proto/server.h>
#include <proto/stream.h>
#include <netinet/tcp.h>
#include <haproxy/log.h>
#include <haproxy/pool.h>
#include <haproxy/proxy.h>
+#include <haproxy/queue.h>
#include <haproxy/session.h>
#include <haproxy/stats-t.h>
#include <haproxy/stream_interface.h>
#include <haproxy/freq_ctr.h>
#include <proto/stream.h>
#include <haproxy/pipe.h>
-#include <proto/queue.h>
#include <proto/server.h>
#include <haproxy/stick_table.h>