/*
- * include/types/peers.h
+ * include/haproxy/peers-t.h
* This file defines everything related to peers.
*
* Copyright 2010 EXCELIANCE, Emeric Brun <ebrun@exceliance.fr>
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef _TYPES_PEERS_H
-#define _TYPES_PEERS_H
+#ifndef _HAPROXY_PEERS_T_H
+#define _HAPROXY_PEERS_T_H
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#include <import/eb32tree.h>
+
#include <haproxy/dict-t.h>
+#include <haproxy/thread-t.h>
#include <haproxy/api-t.h>
#include <haproxy/list-t.h>
-#include <import/eb32tree.h>
struct shared_table {
size_t max_entries;
};
-extern struct peers *cfg_peers;
-
-#endif /* _TYPES_PEERS_H */
+#endif /* _HAPROXY_PEERS_T_H */
/*
- * include/proto/peers.h
+ * include/haproxy/peers.h
* This file defines function prototypes for peers management.
*
* Copyright 2010 EXCELIANCE, Emeric Brun <ebrun@exceliance.fr>
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef _PROTO_PEERS_H
-#define _PROTO_PEERS_H
+#ifndef _HAPROXY_PEERS_H
+#define _HAPROXY_PEERS_H
#include <haproxy/api.h>
#include <haproxy/connection.h>
-#include <haproxy/ticks.h>
+#include <haproxy/obj_type.h>
+#include <haproxy/peers-t.h>
#include <haproxy/time.h>
+
+#include <types/proxy.h>
+#include <types/stick_table.h>
#include <types/stream.h>
-#include <types/peers.h>
+
+extern struct peers *cfg_peers;
+
+int peers_init_sync(struct peers *peers);
+int peers_alloc_dcache(struct peers *peers);
+void peers_register_table(struct peers *, struct stktable *table);
+void peers_setup_frontend(struct proxy *fe);
#if defined(USE_OPENSSL)
static inline enum obj_type *peer_session_target(struct peer *p, struct stream *s)
}
#endif
-int peers_init_sync(struct peers *peers);
-int peers_alloc_dcache(struct peers *peers);
-void peers_register_table(struct peers *, struct stktable *table);
-void peers_setup_frontend(struct proxy *fe);
-
-#endif /* _PROTO_PEERS_H */
+#endif /* _HAPROXY_PEERS_H */
#include <haproxy/dict-t.h>
#include <haproxy/pool-t.h>
#include <haproxy/freq_ctr-t.h>
-#include <types/peers.h>
+#include <haproxy/peers-t.h>
#include <haproxy/sample-t.h>
/* The types of extra data we can store in a stick table */
#include <haproxy/listener.h>
#include <haproxy/mailers-t.h>
#include <haproxy/obj_type-t.h>
+#include <haproxy/peers-t.h>
#include <haproxy/pool.h>
#include <haproxy/tools.h>
#include <haproxy/time.h>
#include <types/filters.h>
#include <haproxy/global.h>
-#include <types/peers.h>
#include <types/stats.h>
#include <proto/acl.h>
#include <haproxy/protocol.h>
#include <proto/http_ana.h>
#include <proto/proxy.h>
-#include <proto/peers.h>
+#include <haproxy/peers.h>
#include <haproxy/sample.h>
#include <proto/session.h>
#include <proto/server.h>
#include <haproxy/listener.h>
#include <haproxy/mworker-t.h>
#include <haproxy/pattern-t.h>
+#include <haproxy/peers.h>
#include <haproxy/sample-t.h>
#include <haproxy/task.h>
#include <haproxy/tools.h>
#include <haproxy/net_helper.h>
#include <haproxy/openssl-compat.h>
#include <haproxy/pattern.h>
+#include <haproxy/peers.h>
#include <haproxy/sample.h>
#include <haproxy/regex.h>
#include <haproxy/signal.h>
#include <types/filters.h>
#include <haproxy/global.h>
#include <types/acl.h>
-#include <types/peers.h>
#include <proto/acl.h>
#include <haproxy/activity.h>
#include <haproxy/list.h>
#include <haproxy/listener.h>
#include <haproxy/mworker.h>
+#include <haproxy/peers.h>
#include <haproxy/signal.h>
#include <haproxy/version.h>
#include <types/cli.h>
#include <haproxy/global.h>
-#include <types/peers.h>
#include <proto/cli.h>
#include <haproxy/fd.h>
#include <haproxy/frontend.h>
#include <haproxy/net_helper.h>
#include <haproxy/obj_type-t.h>
+#include <haproxy/peers.h>
#include <haproxy/task.h>
#include <haproxy/signal.h>
#include <haproxy/time.h>
#include <haproxy/tools.h>
#include <haproxy/thread.h>
-#include <types/peers.h>
#include <types/stats.h>
#include <proto/acl.h>
#include <proto/cli.h>
#include <haproxy/fd.h>
#include <proto/log.h>
-#include <proto/peers.h>
#include <proto/proxy.h>
#include <proto/session.h>
#include <proto/stream.h>
#include <haproxy/global.h>
#include <haproxy/listener.h>
#include <haproxy/obj_type-t.h>
+#include <haproxy/peers.h>
#include <haproxy/pool.h>
#include <haproxy/task.h>
#include <haproxy/time.h>
#include <haproxy/capture-t.h>
#include <types/cli.h>
-#include <types/peers.h>
#include <types/stats.h>
#include <proto/applet.h>
#include <haproxy/pool.h>
#include <haproxy/list.h>
#include <haproxy/net_helper.h>
+#include <haproxy/peers.h>
#include <haproxy/task.h>
#include <haproxy/tcp_rules.h>
#include <haproxy/tools.h>
#include <proto/stream.h>
#include <proto/stream_interface.h>
#include <proto/stick_table.h>
-#include <proto/peers.h>
/* structure used to return a table key built from a sample */
static THREAD_LOCAL struct stktable_key static_table_key;