From: Willy Tarreau Date: Thu, 4 Jun 2020 19:33:21 +0000 (+0200) Subject: REORG: include: move fcgi-app.h to haproxy/fcgi-app{,-t}.h X-Git-Tag: v2.2-dev9~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6599682d5b8aff3ebdef14264991a4e801d4124;p=thirdparty%2Fhaproxy.git REORG: include: move fcgi-app.h to haproxy/fcgi-app{,-t}.h Only arg-t.h was missing from the types to get arg_list. --- diff --git a/include/types/fcgi-app.h b/include/haproxy/fcgi-app-t.h similarity index 95% rename from include/types/fcgi-app.h rename to include/haproxy/fcgi-app-t.h index 4d1581b48b..602310da95 100644 --- a/include/types/fcgi-app.h +++ b/include/haproxy/fcgi-app-t.h @@ -1,5 +1,5 @@ /* - * include/types/fcgi-app.h + * include/haproxy/fcgi-app-t.h * This file defines everything related to FCGI applications. * * Copyright (C) 2019 HAProxy Technologies, Christopher Faulet @@ -19,18 +19,19 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef _TYPES_HTTP_FCGI_H -#define _TYPES_HTTP_FCGI_H +#ifndef _HAPROXY_HTTP_FCGI_T_H +#define _HAPROXY_HTTP_FCGI_T_H -#include -#include +#include #include + +#include +#include #include #include #include #include - -#include +#include #define FCGI_APP_FL_KEEP_CONN 0x00000001 /* Keep the connection alive */ #define FCGI_APP_FL_GET_VALUES 0x00000002 /* Retrieve FCGI variables on connection establishment */ @@ -113,7 +114,7 @@ struct fcgi_flt_ctx { struct fcgi_app *app; }; -#endif /* _TYPES_HTTP_FCGI_H */ +#endif /* _HAPROXY_HTTP_FCGI_T_H */ /* * Local variables: diff --git a/include/proto/fcgi-app.h b/include/haproxy/fcgi-app.h similarity index 88% rename from include/proto/fcgi-app.h rename to include/haproxy/fcgi-app.h index 424d018a4a..becfdde9c3 100644 --- a/include/proto/fcgi-app.h +++ b/include/haproxy/fcgi-app.h @@ -1,5 +1,5 @@ /* - * include/proto/fcgi-app.h + * include/haproxy/fcgi-app.h * This file defines function prototypes for FCGI applications. * * Copyright (C) 2019 HAProxy Technologies, Christopher Faulet @@ -19,12 +19,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef _PROTO_HTTP_FCGI_H -#define _PROTO_HTTP_FCGI_H +#ifndef _HAPROXY_HTTP_FCGI_H +#define _HAPROXY_HTTP_FCGI_H -#include - -#include +#include #include #include @@ -34,7 +32,7 @@ struct fcgi_flt_ctx *find_strm_fcgi_ctx(struct stream *s); struct fcgi_app *get_px_fcgi_app(struct proxy *px); struct fcgi_app *get_strm_fcgi_app(struct stream *s); -#endif /* _PROTO_HTTP_FCGI_H */ +#endif /* _HAPROXY_HTTP_FCGI_H */ /* * Local variables: diff --git a/src/fcgi-app.c b/src/fcgi-app.c index 9097dab9d8..629c67792b 100644 --- a/src/fcgi-app.c +++ b/src/fcgi-app.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -25,7 +26,6 @@ #include -#include #include #include #include diff --git a/src/mux_fcgi.c b/src/mux_fcgi.c index c429faa5a9..2bb5862620 100644 --- a/src/mux_fcgi.c +++ b/src/mux_fcgi.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -28,7 +29,6 @@ #include -#include #include #include #include