mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-28 06:11:32 +01:00
REORG: include: move acl.h to haproxy/acl.h{,-t}.h
The files were moved almost as-is, just dropping arg-t and auth-t from acl-t but keeping arg-t in acl.h. It was useful to revisit the call places since a handful of files used to continue to include acl.h while they did not need it at all. Struct stream was only made a forward declaration since not otherwise needed.
This commit is contained in:
parent
c6d61d762f
commit
dcc048a14a
@ -1,8 +1,8 @@
|
||||
/*
|
||||
* include/types/acl.h
|
||||
* include/haproxy/acl-t.h
|
||||
* This file provides structures and types for ACLs.
|
||||
*
|
||||
* 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,19 +19,18 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef _TYPES_ACL_H
|
||||
#define _TYPES_ACL_H
|
||||
#ifndef _HAPROXY_ACL_T_H
|
||||
#define _HAPROXY_ACL_T_H
|
||||
|
||||
#include <haproxy/auth-t.h>
|
||||
#include <import/ebmbtree.h>
|
||||
|
||||
#include <haproxy/list-t.h>
|
||||
#include <haproxy/pattern-t.h>
|
||||
#include <haproxy/api-t.h>
|
||||
#include <haproxy/list-t.h>
|
||||
|
||||
#include <haproxy/arg-t.h>
|
||||
#include <types/proxy.h>
|
||||
#include <types/server.h>
|
||||
|
||||
#include <import/ebmbtree.h>
|
||||
|
||||
/* ACL test result.
|
||||
*
|
||||
@ -70,10 +69,6 @@ enum acl_cond_pol {
|
||||
ACL_COND_UNLESS, /* negative condition (after 'unless') */
|
||||
};
|
||||
|
||||
/* some dummy declarations to silent the compiler */
|
||||
struct proxy;
|
||||
struct stream;
|
||||
|
||||
/*
|
||||
* ACL keyword: Associates keywords with parsers, methods to retrieve the value and testers.
|
||||
*/
|
||||
@ -157,7 +152,7 @@ struct acl_cond {
|
||||
int line; /* line in the config file where the condition is declared */
|
||||
};
|
||||
|
||||
#endif /* _TYPES_ACL_H */
|
||||
#endif /* _HAPROXY_ACL_T_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* include/proto/acl.h
|
||||
* include/haproxy/acl.h
|
||||
* This file provides interface definitions for ACL manipulation.
|
||||
*
|
||||
* 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_ACL_H
|
||||
#define _PROTO_ACL_H
|
||||
#ifndef _HAPROXY_ACL_H
|
||||
#define _HAPROXY_ACL_H
|
||||
|
||||
#include <haproxy/acl-t.h>
|
||||
#include <haproxy/arg-t.h>
|
||||
#include <haproxy/api.h>
|
||||
#include <types/acl.h>
|
||||
|
||||
struct stream;
|
||||
|
||||
/*
|
||||
* FIXME: we need destructor functions too !
|
||||
@ -144,7 +147,7 @@ void acl_unregister_keywords(struct acl_kw_list *kwl);
|
||||
int init_acl();
|
||||
|
||||
|
||||
#endif /* _PROTO_ACL_H */
|
||||
#endif /* _HAPROXY_ACL_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
@ -22,6 +22,7 @@
|
||||
#ifndef _TYPES_HTTP_FCGI_H
|
||||
#define _TYPES_HTTP_FCGI_H
|
||||
|
||||
#include <haproxy/acl-t.h>
|
||||
#include <haproxy/api-t.h>
|
||||
#include <import/ist.h>
|
||||
#include <haproxy/fcgi.h>
|
||||
@ -30,7 +31,6 @@
|
||||
|
||||
#include <import/ebistree.h>
|
||||
|
||||
#include <types/acl.h>
|
||||
#include <types/filters.h>
|
||||
|
||||
#define FCGI_APP_FL_KEEP_CONN 0x00000001 /* Keep the connection alive */
|
||||
|
||||
@ -27,6 +27,7 @@
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#include <haproxy/arg-t.h>
|
||||
#include <haproxy/api-t.h>
|
||||
#include <haproxy/check-t.h>
|
||||
#include <haproxy/chunk.h>
|
||||
@ -39,7 +40,7 @@
|
||||
#include <import/eb32tree.h>
|
||||
#include <import/ebistree.h>
|
||||
|
||||
#include <types/acl.h>
|
||||
#include <haproxy/acl-t.h>
|
||||
#include <types/backend.h>
|
||||
#include <types/filters.h>
|
||||
#include <haproxy/freq_ctr-t.h>
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <haproxy/acl.h>
|
||||
#include <haproxy/auth.h>
|
||||
#include <haproxy/api.h>
|
||||
#include <haproxy/list.h>
|
||||
@ -23,7 +24,6 @@
|
||||
|
||||
#include <haproxy/global.h>
|
||||
|
||||
#include <proto/acl.h>
|
||||
#include <haproxy/arg.h>
|
||||
#include <proto/channel.h>
|
||||
#include <proto/log.h>
|
||||
|
||||
@ -32,7 +32,6 @@
|
||||
#include <haproxy/pattern-t.h>
|
||||
#include <haproxy/thread.h>
|
||||
|
||||
#include <proto/acl.h>
|
||||
#include <proto/log.h>
|
||||
|
||||
struct userlist *userlist = NULL; /* list of all existing userlists */
|
||||
|
||||
@ -19,6 +19,7 @@
|
||||
#include <ctype.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <haproxy/acl.h>
|
||||
#include <haproxy/api.h>
|
||||
#include <haproxy/check.h>
|
||||
#include <haproxy/frontend.h>
|
||||
@ -40,7 +41,6 @@
|
||||
|
||||
#include <haproxy/global.h>
|
||||
|
||||
#include <proto/acl.h>
|
||||
#include <haproxy/arg.h>
|
||||
#include <proto/backend.h>
|
||||
#include <proto/channel.h>
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
#include <common/cfgparse.h>
|
||||
#include <common/uri_auth.h>
|
||||
|
||||
#include <haproxy/acl.h>
|
||||
#include <haproxy/capture-t.h>
|
||||
#include <haproxy/check.h>
|
||||
#include <haproxy/compression-t.h>
|
||||
@ -25,7 +26,6 @@
|
||||
#include <haproxy/sample.h>
|
||||
#include <types/stats.h>
|
||||
|
||||
#include <proto/acl.h>
|
||||
#include <haproxy/protocol.h>
|
||||
#include <proto/proxy.h>
|
||||
#include <proto/server.h>
|
||||
|
||||
@ -33,6 +33,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <haproxy/acl.h>
|
||||
#include <haproxy/action-t.h>
|
||||
#include <haproxy/auth.h>
|
||||
#include <haproxy/api.h>
|
||||
@ -66,7 +67,6 @@
|
||||
#include <haproxy/global.h>
|
||||
#include <types/stats.h>
|
||||
|
||||
#include <proto/acl.h>
|
||||
#include <proto/backend.h>
|
||||
#include <proto/channel.h>
|
||||
#include <proto/stats.h>
|
||||
|
||||
@ -35,7 +35,6 @@
|
||||
#include <haproxy/global.h>
|
||||
#include <haproxy/compression-t.h>
|
||||
|
||||
#include <proto/acl.h>
|
||||
#include <haproxy/compression.h>
|
||||
#include <haproxy/freq_ctr.h>
|
||||
#include <proto/stream.h>
|
||||
|
||||
@ -10,6 +10,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <haproxy/acl.h>
|
||||
#include <haproxy/api.h>
|
||||
#include <haproxy/chunk.h>
|
||||
#include <common/cfgparse.h>
|
||||
@ -23,7 +24,6 @@
|
||||
|
||||
#include <haproxy/global.h>
|
||||
|
||||
#include <proto/acl.h>
|
||||
#include <proto/fcgi-app.h>
|
||||
#include <proto/filters.h>
|
||||
#include <proto/log.h>
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <haproxy/acl.h>
|
||||
#include <haproxy/action-t.h>
|
||||
#include <haproxy/api.h>
|
||||
#include <common/cfgparse.h>
|
||||
@ -31,7 +32,6 @@
|
||||
#include <haproxy/global.h>
|
||||
#include <types/spoe.h>
|
||||
|
||||
#include <proto/acl.h>
|
||||
#include <haproxy/arg.h>
|
||||
#include <proto/backend.h>
|
||||
#include <proto/filters.h>
|
||||
|
||||
@ -22,6 +22,7 @@
|
||||
|
||||
#include <netinet/tcp.h>
|
||||
|
||||
#include <haproxy/acl.h>
|
||||
#include <haproxy/api.h>
|
||||
#include <haproxy/chunk.h>
|
||||
#include <haproxy/frontend.h>
|
||||
@ -32,7 +33,6 @@
|
||||
|
||||
#include <haproxy/global.h>
|
||||
|
||||
#include <proto/acl.h>
|
||||
#include <haproxy/arg.h>
|
||||
#include <proto/channel.h>
|
||||
#include <haproxy/fd.h>
|
||||
|
||||
@ -78,6 +78,7 @@
|
||||
#include <systemd/sd-daemon.h>
|
||||
#endif
|
||||
|
||||
#include <haproxy/acl.h>
|
||||
#include <haproxy/auth.h>
|
||||
#include <haproxy/api.h>
|
||||
#include <import/sha1.h>
|
||||
@ -116,9 +117,7 @@
|
||||
#include <types/cli.h>
|
||||
#include <types/filters.h>
|
||||
#include <haproxy/global.h>
|
||||
#include <types/acl.h>
|
||||
|
||||
#include <proto/acl.h>
|
||||
#include <haproxy/activity.h>
|
||||
#include <haproxy/arg.h>
|
||||
#include <proto/backend.h>
|
||||
|
||||
@ -16,6 +16,7 @@
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <haproxy/acl.h>
|
||||
#include <haproxy/auth.h>
|
||||
#include <haproxy/api.h>
|
||||
#include <haproxy/chunk.h>
|
||||
@ -25,7 +26,6 @@
|
||||
#include <haproxy/tools.h>
|
||||
#include <haproxy/version.h>
|
||||
|
||||
#include <proto/acl.h>
|
||||
#include <haproxy/arg.h>
|
||||
|
||||
|
||||
|
||||
@ -16,6 +16,7 @@
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <haproxy/acl.h>
|
||||
#include <haproxy/action.h>
|
||||
#include <haproxy/api.h>
|
||||
#include <common/cfgparse.h>
|
||||
@ -34,7 +35,6 @@
|
||||
|
||||
#include <haproxy/capture-t.h>
|
||||
|
||||
#include <proto/acl.h>
|
||||
#include <haproxy/arg.h>
|
||||
#include <proto/log.h>
|
||||
#include <proto/http_ana.h>
|
||||
|
||||
@ -10,6 +10,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <haproxy/acl.h>
|
||||
#include <haproxy/action-t.h>
|
||||
#include <haproxy/api.h>
|
||||
#include <haproxy/base64.h>
|
||||
@ -25,7 +26,6 @@
|
||||
|
||||
#include <haproxy/capture-t.h>
|
||||
|
||||
#include <proto/acl.h>
|
||||
#include <proto/channel.h>
|
||||
#include <proto/filters.h>
|
||||
#include <proto/log.h>
|
||||
|
||||
@ -16,6 +16,7 @@
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <haproxy/acl.h>
|
||||
#include <haproxy/action.h>
|
||||
#include <haproxy/api.h>
|
||||
#include <common/cfgparse.h>
|
||||
@ -28,7 +29,6 @@
|
||||
|
||||
#include <haproxy/capture-t.h>
|
||||
|
||||
#include <proto/acl.h>
|
||||
#include <haproxy/arg.h>
|
||||
#include <proto/http_ana.h>
|
||||
#include <haproxy/sample.h>
|
||||
|
||||
@ -18,6 +18,7 @@
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#include <haproxy/acl.h>
|
||||
#include <haproxy/api.h>
|
||||
#include <common/cfgparse.h>
|
||||
#include <haproxy/connection.h>
|
||||
@ -31,7 +32,6 @@
|
||||
|
||||
#include <haproxy/protocol-t.h>
|
||||
|
||||
#include <proto/acl.h>
|
||||
#include <haproxy/fd.h>
|
||||
#include <haproxy/freq_ctr.h>
|
||||
#include <proto/log.h>
|
||||
|
||||
@ -13,13 +13,13 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <haproxy/acl.h>
|
||||
#include <haproxy/api.h>
|
||||
#include <haproxy/connection.h>
|
||||
#include <haproxy/net_helper.h>
|
||||
#include <haproxy/payload.h>
|
||||
#include <haproxy/pattern.h>
|
||||
#include <haproxy/htx.h>
|
||||
#include <proto/acl.h>
|
||||
#include <haproxy/arg.h>
|
||||
#include <proto/channel.h>
|
||||
#include <haproxy/sample.h>
|
||||
|
||||
@ -35,7 +35,6 @@
|
||||
|
||||
#include <types/stats.h>
|
||||
|
||||
#include <proto/acl.h>
|
||||
#include <proto/applet.h>
|
||||
#include <proto/channel.h>
|
||||
#include <proto/cli.h>
|
||||
|
||||
@ -20,6 +20,7 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <haproxy/acl.h>
|
||||
#include <haproxy/api.h>
|
||||
#include <haproxy/buf-t.h>
|
||||
#include <haproxy/obj_type.h>
|
||||
@ -30,7 +31,6 @@
|
||||
|
||||
#include <types/ssl_sock.h>
|
||||
|
||||
#include <proto/acl.h>
|
||||
#include <haproxy/arg.h>
|
||||
#include <proto/ssl_sock.h>
|
||||
|
||||
|
||||
@ -72,7 +72,6 @@
|
||||
#include <types/ssl_sock.h>
|
||||
#include <types/stats.h>
|
||||
|
||||
#include <proto/acl.h>
|
||||
#include <haproxy/arg.h>
|
||||
#include <proto/channel.h>
|
||||
#include <proto/cli.h>
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#include <haproxy/acl.h>
|
||||
#include <haproxy/action.h>
|
||||
#include <haproxy/api.h>
|
||||
#include <haproxy/capture.h>
|
||||
@ -41,7 +42,6 @@
|
||||
#include <types/filters.h>
|
||||
#include <types/stats.h>
|
||||
|
||||
#include <proto/acl.h>
|
||||
#include <haproxy/activity.h>
|
||||
#include <haproxy/arg.h>
|
||||
#include <proto/backend.h>
|
||||
|
||||
@ -9,6 +9,7 @@
|
||||
* 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
*/
|
||||
#include <haproxy/acl.h>
|
||||
#include <haproxy/action.h>
|
||||
#include <haproxy/api.h>
|
||||
#include <haproxy/capture-t.h>
|
||||
@ -24,7 +25,6 @@
|
||||
|
||||
#include <haproxy/arg-t.h>
|
||||
|
||||
#include <proto/acl.h>
|
||||
#include <proto/channel.h>
|
||||
#include <proto/log.h>
|
||||
#include <proto/proxy.h>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user