#include <haproxy/connection-t.h>
#include <types/http_ana.h>
#include <types/stream.h>
-#include <types/stream_interface.h>
+#include <haproxy/stream_interface-t.h>
#include <haproxy/task-t.h>
// 1 bit per flag, no hole permitted here
#include <haproxy/ssl_sock.h>
#include <haproxy/stats.h>
#include <proto/stream.h>
-#include <proto/stream_interface.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/task.h>
/* Prometheus exporter applet states (appctx->st0) */
#include <types/proxy.h>
#include <types/server.h>
#include <types/stream.h>
-#include <types/stream_interface.h>
+#include <haproxy/stream_interface-t.h>
static inline enum obj_type obj_type(const enum obj_type *t)
{
#include <haproxy/applet-t.h>
#include <haproxy/api.h>
+#include <haproxy/stream_interface-t.h>
#include <haproxy/stats-t.h>
#include <haproxy/tools-t.h>
-#include <types/stream_interface.h>
/* These two structs contains all field names and descriptions according to
/*
- * include/types/stream_interface.h
+ * include/haproxy/stream_interface-t.h
* This file describes the stream_interface struct and associated constants.
*
* Copyright (C) 2000-2014 Willy Tarreau - w@1wt.eu
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef _TYPES_STREAM_INTERFACE_H
-#define _TYPES_STREAM_INTERFACE_H
+#ifndef _HAPROXY_STREAM_INTERFACE_T_H
+#define _HAPROXY_STREAM_INTERFACE_T_H
#include <haproxy/api-t.h>
+#include <haproxy/buf-t.h>
+#include <haproxy/connection-t.h>
#include <haproxy/obj_type-t.h>
/* A stream interface must have its own errors independently of the buffer's,
void (*shutw)(struct stream_interface *); /* shut write function, may not be null */
};
-#endif /* _TYPES_STREAM_INTERFACE_H */
+#endif /* _HAPROXY_STREAM_INTERFACE_T_H */
/*
* Local variables:
/*
- * include/proto/stream_interface.h
+ * include/haproxy/stream_interface.h
* This file contains stream_interface function prototypes
*
* Copyright (C) 2000-2014 Willy Tarreau - w@1wt.eu
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef _PROTO_STREAM_INTERFACE_H
-#define _PROTO_STREAM_INTERFACE_H
-
-#include <stdlib.h>
+#ifndef _HAPROXY_STREAM_INTERFACE_H
+#define _HAPROXY_STREAM_INTERFACE_H
#include <haproxy/applet.h>
#include <haproxy/api.h>
#include <haproxy/connection.h>
-#include <types/stream.h>
-#include <types/stream_interface.h>
+#include <haproxy/stream_interface-t.h>
#include <proto/channel.h>
+#include <types/stream.h>
extern struct si_ops si_embedded_ops;
}
}
-#endif /* _PROTO_STREAM_INTERFACE_H */
+#endif /* _HAPROXY_STREAM_INTERFACE_H */
/*
* Local variables:
#include <haproxy/dynbuf.h>
#include <haproxy/global.h>
#include <haproxy/htx.h>
+#include <haproxy/stream_interface-t.h>
#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <types/channel.h>
#include <types/stream.h>
-#include <types/stream_interface.h>
#include <proto/stream.h>
#include <haproxy/task.h>
#include <haproxy/list-t.h>
#include <haproxy/obj_type-t.h>
#include <haproxy/session-t.h>
+#include <haproxy/stream_interface-t.h>
#include <haproxy/vars-t.h>
#include <types/channel.h>
#include <types/proxy.h>
#include <types/queue.h>
#include <types/server.h>
-#include <types/stream_interface.h>
#include <haproxy/task-t.h>
#include <haproxy/stick_table-t.h>
#include <haproxy/api.h>
#include <common/cfgparse.h>
#include <haproxy/cli.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/tools.h>
#include <haproxy/thread-t.h>
#include <haproxy/activity-t.h>
#include <proto/channel.h>
#include <haproxy/freq_ctr.h>
-#include <proto/stream_interface.h>
/* bit field of profiling options. Beware, may be modified at runtime! */
#include <haproxy/applet.h>
#include <haproxy/api.h>
#include <haproxy/list.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/task.h>
#include <proto/channel.h>
#include <proto/stream.h>
-#include <proto/stream_interface.h>
unsigned int nb_applets = 0;
#include <haproxy/payload.h>
#include <haproxy/session.h>
#include <haproxy/ssl_sock.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/task.h>
#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <haproxy/sample.h>
#include <proto/server.h>
#include <proto/stream.h>
-#include <proto/stream_interface.h>
#define TRACE_SOURCE &trace_strm
#include <haproxy/http_htx.h>
#include <haproxy/http_rules.h>
#include <haproxy/shctx.h>
+#include <haproxy/stream_interface.h>
#include <import/eb32tree.h>
#include <import/sha1.h>
#include <proto/http_ana.h>
#include <proto/log.h>
#include <proto/stream.h>
-#include <proto/stream_interface.h>
#include <common/cfgparse.h>
#include <haproxy/signal.h>
#include <haproxy/ssl_sock.h>
#include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/task.h>
#include <haproxy/vars.h>
#include <haproxy/protocol.h>
#include <proto/proxy.h>
#include <proto/server.h>
-#include <proto/stream_interface.h>
#include <proto/log.h>
#include <haproxy/proto_udp.h>
#include <haproxy/sample.h>
#include <haproxy/sample-t.h>
#include <haproxy/session.h>
#include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/task.h>
#include <haproxy/tools.h>
#include <haproxy/ticks.h>
#include <proto/proxy.h>
#include <proto/stream.h>
#include <proto/server.h>
-#include <proto/stream_interface.h>
#define PAYLOAD_PATTERN "<<"
#include <haproxy/fd.h>
#include <haproxy/proto_tcp.h>
-#include <proto/stream_interface.h>
#include <haproxy/sample.h>
#include <haproxy/ssl_sock.h>
+#include <haproxy/stream_interface.h>
DECLARE_POOL(pool_head_connection, "connection", sizeof(struct connection));
#include <haproxy/cli.h>
#include <haproxy/debug.h>
#include <haproxy/hlua.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/task.h>
#include <haproxy/thread.h>
#include <import/ist.h>
#include <haproxy/global.h>
#include <haproxy/fd.h>
-#include <proto/stream_interface.h>
/* mask of threads still having to dump, used to respect ordering. Only used
* when USE_THREAD_DUMP is set.
#include <haproxy/http_rules.h>
#include <haproxy/sample.h>
#include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/task.h>
#include <haproxy/tcp_rules.h>
#include <haproxy/time.h>
#include <proto/server.h>
#include <haproxy/proto_udp.h>
#include <proto/proxy.h>
-#include <proto/stream_interface.h>
struct list dns_resolvers = LIST_HEAD_INIT(dns_resolvers);
struct list dns_srvrq_list = LIST_HEAD_INIT(dns_srvrq_list);
#include <haproxy/http_htx.h>
#include <haproxy/htx.h>
#include <haproxy/namespace.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/tools.h>
#include <types/filters.h>
#include <proto/filters.h>
#include <proto/http_ana.h>
#include <proto/stream.h>
-#include <proto/stream_interface.h>
#define TRACE_SOURCE &trace_strm
#include <haproxy/thread.h>
#include <haproxy/pool.h>
#include <haproxy/session.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/task.h>
#include <haproxy/tcp_rules.h>
#include <haproxy/time.h>
#include <proto/proxy.h>
#include <proto/spoe.h>
#include <proto/stream.h>
-#include <proto/stream_interface.h>
#if defined(DEBUG_SPOE) || defined(DEBUG_FULL)
#define SPOE_PRINTF(x...) fprintf(x)
#include <haproxy/chunk.h>
#include <haproxy/frontend.h>
#include <haproxy/sample.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/task.h>
#include <haproxy/tools.h>
#include <haproxy/time.h>
#include <proto/http_ana.h>
#include <proto/proxy.h>
#include <proto/stream.h>
-#include <proto/stream_interface.h>
/* Finish a stream accept() for a proxy (TCP or HTTP). It returns a negative
* value in case of a critical failure which must cause the listener to be
#include <haproxy/sample.h>
#include <haproxy/session.h>
#include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/task.h>
#include <haproxy/tcp_rules.h>
#include <haproxy/tools.h>
#include <proto/http_ana.h>
#include <proto/server.h>
#include <proto/stream.h>
-#include <proto/stream_interface.h>
/* Lua uses longjmp to perform yield or throwing errors. This
* macro is used only for identifying the function that can
#include <haproxy/pool.h>
#include <haproxy/regex.h>
#include <haproxy/sample.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/tools.h>
#include <haproxy/uri_auth-t.h>
#include <haproxy/version.h>
#include <haproxy/arg.h>
#include <proto/log.h>
#include <proto/http_ana.h>
-#include <proto/stream_interface.h>
/* Release memory allocated by most of HTTP actions. Concretly, it releases
* <arg.http>.
#include <haproxy/net_helper.h>
#include <haproxy/regex.h>
#include <haproxy/stats.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/uri_auth-t.h>
#include <haproxy/vars.h>
#include <proto/proxy.h>
#include <proto/server.h>
#include <proto/stream.h>
-#include <proto/stream_interface.h>
#define TRACE_SOURCE &trace_strm
#include <haproxy/frontend.h>
#include <haproxy/http.h>
#include <haproxy/ssl_sock.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/tools.h>
#include <haproxy/time.h>
#include <haproxy/version.h>
#include <haproxy/sample.h>
#include <haproxy/sink.h>
#include <proto/stream.h>
-#include <proto/stream_interface.h>
struct log_fmt {
char *name;
#include <haproxy/pattern.h>
#include <haproxy/regex.h>
#include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/tools.h>
#include <haproxy/arg.h>
#include <proto/log.h>
-#include <proto/stream_interface.h>
#include <haproxy/sample.h>
/* Parse an IPv4 or IPv6 address and store it into the sample.
#include <haproxy/regex.h>
#include <haproxy/session-t.h>
#include <haproxy/ssl_sock.h>
+#include <haproxy/stream_interface.h>
#include <types/proxy.h>
#include <proto/fcgi-app.h>
#include <proto/log.h>
#include <proto/stream.h>
-#include <proto/stream_interface.h>
#include <haproxy/trace.h>
/* FCGI Connection flags (32 bits) */
#include <proto/log.h>
#include <haproxy/session-t.h>
#include <proto/stream.h>
-#include <proto/stream_interface.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/trace.h>
/*
#include <haproxy/htx.h>
#include <haproxy/net_helper.h>
#include <haproxy/session-t.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/trace.h>
#include <proto/stream.h>
-#include <proto/stream_interface.h>
#include <import/eb32tree.h>
#include <haproxy/mworker.h>
#include <haproxy/peers.h>
#include <haproxy/signal.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/version.h>
#include <haproxy/global.h>
#include <proto/log.h>
#include <proto/proxy.h>
#include <proto/stream.h>
-#include <proto/stream_interface.h>
#if defined(USE_SYSTEMD)
#include <haproxy/session-t.h>
#include <haproxy/signal.h>
#include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/time.h>
#include <haproxy/tools.h>
#include <haproxy/thread.h>
#include <proto/proxy.h>
#include <proto/stream.h>
#include <haproxy/stick_table.h>
-#include <proto/stream_interface.h>
/*******************************/
#include <haproxy/pool.h>
#include <haproxy/list.h>
#include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/tools.h>
#include <haproxy/activity-t.h>
#include <proto/channel.h>
#include <proto/log.h>
-#include <proto/stream_interface.h>
#ifdef CONFIG_HAP_LOCAL_POOLS
/* These are the most common pools, expected to be initialized first. These
#include <haproxy/peers.h>
#include <haproxy/pool.h>
#include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/task.h>
#include <haproxy/time.h>
#include <proto/server.h>
#include <haproxy/signal.h>
#include <proto/stream.h>
-#include <proto/stream_interface.h>
int listeners; /* # of proxy listeners, set by cfgparse */
#include <haproxy/http_rules.h>
#include <haproxy/pool.h>
#include <haproxy/sample.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/task.h>
#include <haproxy/tcp_rules.h>
#include <haproxy/time.h>
#include <proto/queue.h>
#include <proto/server.h>
#include <proto/stream.h>
-#include <proto/stream_interface.h>
#define NOW_OFFSET_BOUNDARY() ((now_ms - (TIMER_LOOK_BACK >> 12)) & 0xfffff)
#include <haproxy/buf.h>
#include <haproxy/connection.h>
#include <haproxy/global.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/tools.h>
#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <haproxy/freq_ctr.h>
#include <proto/log.h>
#include <haproxy/pipe.h>
-#include <proto/stream_interface.h>
#if defined(USE_LINUX_SPLICE)
#include <haproxy/cli.h>
#include <haproxy/thread.h>
#include <haproxy/ring.h>
-#include <proto/stream_interface.h>
+#include <haproxy/stream_interface.h>
/* Creates and returns a ring buffer of size <size> bytes. Returns NULL on
* allocation failure.
#include <haproxy/namespace.h>
#include <haproxy/sample.h>
#include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/task.h>
#include <haproxy/time.h>
#include <proto/queue.h>
#include <proto/server.h>
#include <proto/stream.h>
-#include <proto/stream_interface.h>
#include <netinet/tcp.h>
#include <import/ebsttree.h>
#include <haproxy/ring.h>
#include <haproxy/signal.h>
#include <haproxy/sink.h>
-#include <proto/stream_interface.h>
+#include <haproxy/stream_interface.h>
struct list sink_list = LIST_HEAD_INIT(sink_list);
#include <haproxy/ssl_ckch.h>
#include <haproxy/ssl_sock.h>
#include <haproxy/ssl_utils.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/tools.h>
#include <import/ebsttree.h>
#include <proto/channel.h>
-#include <proto/stream_interface.h>
/* Uncommitted CKCH transaction */
#include <haproxy/ssl_ckch.h>
#include <haproxy/ssl_crtlist.h>
#include <haproxy/ssl_sock.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/tools.h>
#include <dirent.h>
#include <import/ebsttree.h>
#include <proto/channel.h>
-#include <proto/stream_interface.h>
/* release ssl bind conf */
void ssl_sock_free_ssl_conf(struct ssl_bind_conf *conf)
#include <haproxy/ssl_sock.h>
#include <haproxy/ssl_utils.h>
#include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/task.h>
#include <haproxy/tools.h>
#include <haproxy/ticks.h>
#include <haproxy/proto_tcp.h>
#include <proto/http_ana.h>
#include <proto/server.h>
-#include <proto/stream_interface.h>
#include <proto/log.h>
#include <proto/proxy.h>
#include <proto/stream.h>
#include <haproxy/session.h>
#include <haproxy/ssl_sock.h>
#include <haproxy/stats.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/task.h>
#include <haproxy/tools.h>
#include <haproxy/ticks.h>
#include <proto/proxy.h>
#include <proto/stream.h>
#include <proto/server.h>
-#include <proto/stream_interface.h>
/* status codes available for the stats admin page (strictly 4 chars length) */
const char *stat_status_codes[STAT_STATUS_SIZE] = {
#include <haproxy/net_helper.h>
#include <haproxy/peers.h>
#include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/task.h>
#include <haproxy/tcp_rules.h>
#include <haproxy/tools.h>
#include <proto/proxy.h>
#include <haproxy/sample.h>
#include <proto/stream.h>
-#include <proto/stream_interface.h>
#include <haproxy/stick_table.h>
/* structure used to return a table key built from a sample */
#include <haproxy/pool.h>
#include <haproxy/session.h>
#include <haproxy/stats-t.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/task.h>
#include <haproxy/tcp_rules.h>
#include <haproxy/vars.h>
#include <proto/queue.h>
#include <proto/server.h>
#include <haproxy/stick_table.h>
-#include <proto/stream_interface.h>
DECLARE_POOL(pool_head_stream, "stream", sizeof(struct stream));
DECLARE_POOL(pool_head_uniqueid, "uniqueid", UNIQUEID_LEN);
#include <haproxy/connection.h>
#include <haproxy/dynbuf.h>
#include <haproxy/http_htx.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/tools.h>
#include <haproxy/ticks.h>
#include <haproxy/time.h>
#include <haproxy/pipe.h>
#include <proto/proxy.h>
#include <proto/stream.h>
-#include <proto/stream_interface.h>
#include <haproxy/pipe-t.h>
#include <haproxy/global.h>
#include <haproxy/list.h>
#include <haproxy/sample.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/tcp_rules.h>
#include <haproxy/tools.h>
#include <haproxy/ticks.h>
#include <proto/proxy.h>
#include <haproxy/stick_table.h>
#include <proto/stream.h>
-#include <proto/stream_interface.h>
#define TRACE_SOURCE &trace_strm
#include <haproxy/listener.h>
#include <haproxy/namespace.h>
#include <haproxy/ssl_sock.h>
+#include <haproxy/stream_interface.h>
#include <haproxy/task.h>
#include <haproxy/tools.h>
#include <haproxy/proto_udp.h>
-#include <proto/stream_interface.h>
/* This macro returns false if the test __x is false. Many
* of the following parsing function must be abort the processing
*/
#include <haproxy/connection.h>
-#include <proto/stream_interface.h>
+#include <haproxy/stream_interface.h>
struct xprt_handshake_ctx {
struct connection *conn;