REORG: include: move proto_tcp.h to haproxy/proto_tcp.h

There was no type file. This one really is trivial. A few missing
includes were added to satisfy the exported functions prototypes.
This commit is contained in:
Willy Tarreau 2020-06-04 17:31:04 +02:00
parent cea0e1bb19
commit fc77454aff
9 changed files with 16 additions and 13 deletions

View File

@ -1,5 +1,5 @@
/*
* include/proto/proto_tcp.h
* include/haproxy/proto_tcp.h
* This file contains TCP socket protocol definitions.
*
* Copyright (C) 2000-2013 Willy Tarreau - w@1wt.eu
@ -19,11 +19,14 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _PROTO_PROTO_TCP_H
#define _PROTO_PROTO_TCP_H
#ifndef _HAPROXY_PROTO_TCP_H
#define _HAPROXY_PROTO_TCP_H
#include <haproxy/arg-t.h>
#include <haproxy/api.h>
#include <proto/stick_table.h>
#include <haproxy/listener-t.h>
#include <haproxy/sample-t.h>
#include <types/connection.h>
int tcp_bind_socket(int fd, int flags, struct sockaddr_storage *local, struct sockaddr_storage *remote);
int tcp_pause_listener(struct listener *l);
@ -34,7 +37,7 @@ int tcp_get_dst(int fd, struct sockaddr *sa, socklen_t salen, int dir);
/* Export some samples. */
int smp_fetch_src(const struct arg *args, struct sample *smp, const char *kw, void *private);
#endif /* _PROTO_PROTO_TCP_H */
#endif /* _HAPROXY_PROTO_TCP_H */
/*
* Local variables:

View File

@ -47,7 +47,7 @@
#include <proto/log.h>
#include <haproxy/protocol.h>
#include <proto/http_ana.h>
#include <proto/proto_tcp.h>
#include <haproxy/proto_tcp.h>
#include <proto/proxy.h>
#include <proto/queue.h>
#include <haproxy/sample.h>

View File

@ -59,7 +59,7 @@
#include <proto/log.h>
#include <proto/queue.h>
#include <haproxy/port_range.h>
#include <proto/proto_tcp.h>
#include <haproxy/proto_tcp.h>
#include <haproxy/protocol.h>
#include <proto/proxy.h>
#include <proto/server.h>

View File

@ -21,7 +21,7 @@
#include <proto/connection.h>
#include <haproxy/fd.h>
#include <proto/proto_tcp.h>
#include <haproxy/proto_tcp.h>
#include <proto/stream_interface.h>
#include <haproxy/sample.h>
#include <proto/ssl_sock.h>

View File

@ -37,7 +37,7 @@
#include <proto/channel.h>
#include <haproxy/fd.h>
#include <proto/log.h>
#include <proto/proto_tcp.h>
#include <haproxy/proto_tcp.h>
#include <proto/http_ana.h>
#include <proto/proxy.h>
#include <proto/stream.h>

View File

@ -52,7 +52,7 @@
#include <haproxy/port_range.h>
#include <haproxy/protocol.h>
#include <proto/http_ana.h>
#include <proto/proto_tcp.h>
#include <haproxy/proto_tcp.h>
#include <proto/proxy.h>
#include <proto/server.h>
#include <proto/tcp_rules.h>

View File

@ -41,7 +41,7 @@
#include <haproxy/fd.h>
#include <proto/filters.h>
#include <proto/log.h>
#include <proto/proto_tcp.h>
#include <haproxy/proto_tcp.h>
#include <proto/http_ana.h>
#include <proto/proxy.h>
#include <proto/server.h>

View File

@ -78,7 +78,7 @@
#include <proto/cli.h>
#include <haproxy/fd.h>
#include <haproxy/freq_ctr.h>
#include <proto/proto_tcp.h>
#include <haproxy/proto_tcp.h>
#include <proto/http_ana.h>
#include <proto/server.h>
#include <proto/stream_interface.h>

View File

@ -35,7 +35,7 @@
#include <proto/cli.h>
#include <proto/log.h>
#include <proto/http_ana.h>
#include <proto/proto_tcp.h>
#include <haproxy/proto_tcp.h>
#include <proto/proxy.h>
#include <haproxy/sample.h>
#include <proto/stream.h>