mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-31 02:22:07 +00:00
REORG: include: move queue.h to haproxy/queue{,-t}.h
Nothing outstanding here. A number of call places were not justified and removed.
This commit is contained in:
parent
4980160ecc
commit
a55c45470f
49
include/haproxy/queue-t.h
Normal file
49
include/haproxy/queue-t.h
Normal file
@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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:
|
||||
*/
|
@ -1,8 +1,8 @@
|
||||
/*
|
||||
* 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
|
||||
@ -19,17 +19,16 @@
|
||||
* 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;
|
||||
|
||||
@ -105,7 +104,7 @@ static inline int queue_limit_offset(int offset)
|
||||
}
|
||||
|
||||
|
||||
#endif /* _PROTO_QUEUE_H */
|
||||
#endif /* _HAPROXY_QUEUE_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
@ -30,10 +30,8 @@
|
||||
#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>
|
||||
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
#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>
|
||||
|
@ -1,49 +0,0 @@
|
||||
/*
|
||||
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:
|
||||
*/
|
@ -40,7 +40,6 @@
|
||||
|
||||
#include <haproxy/connection-t.h>
|
||||
#include <haproxy/freq_ctr-t.h>
|
||||
#include <types/queue.h>
|
||||
#include <haproxy/task-t.h>
|
||||
|
||||
|
||||
|
@ -37,11 +37,11 @@
|
||||
#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>
|
||||
|
@ -39,6 +39,7 @@
|
||||
#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>
|
||||
@ -52,7 +53,6 @@
|
||||
#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>
|
||||
|
@ -38,6 +38,7 @@
|
||||
#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>
|
||||
@ -59,7 +60,6 @@
|
||||
|
||||
#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>
|
||||
|
@ -125,7 +125,6 @@
|
||||
#include <haproxy/arg.h>
|
||||
#include <haproxy/fd.h>
|
||||
#include <haproxy/protocol.h>
|
||||
#include <proto/queue.h>
|
||||
#include <proto/server.h>
|
||||
#include <proto/stream.h>
|
||||
|
||||
|
@ -54,7 +54,6 @@
|
||||
#include <haproxy/vars.h>
|
||||
|
||||
#include <haproxy/arg.h>
|
||||
#include <proto/queue.h>
|
||||
#include <proto/server.h>
|
||||
#include <proto/stream.h>
|
||||
|
||||
|
@ -18,11 +18,11 @@
|
||||
|
||||
#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
|
||||
|
@ -18,10 +18,10 @@
|
||||
|
||||
#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
|
||||
|
@ -12,10 +12,10 @@
|
||||
|
||||
#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
|
||||
|
@ -12,10 +12,10 @@
|
||||
|
||||
#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);
|
||||
|
@ -13,10 +13,10 @@
|
||||
#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.
|
||||
*
|
||||
|
@ -73,6 +73,7 @@ s * queue's lock.
|
||||
#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>
|
||||
@ -81,7 +82,6 @@ s * queue's lock.
|
||||
#include <haproxy/thread.h>
|
||||
#include <import/eb32tree.h>
|
||||
|
||||
#include <proto/queue.h>
|
||||
#include <proto/server.h>
|
||||
#include <proto/stream.h>
|
||||
|
||||
|
@ -28,6 +28,7 @@
|
||||
#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>
|
||||
@ -36,7 +37,6 @@
|
||||
|
||||
#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>
|
||||
|
@ -42,6 +42,7 @@
|
||||
#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>
|
||||
@ -55,7 +56,6 @@
|
||||
#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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user