From ab389bca9c6d0e1723b471eb1a2e8d38648efbc4 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Tue, 26 Mar 2019 14:53:21 +0100 Subject: [PATCH] s4:lib/http: move struct http_read_response_state to the implementation This is only used by the implemementation of http_send_request_send/recv, no need to have this in the header file. Signed-off-by: Ralph Boehme Reviewed-by: Samuel Cabrero --- source4/lib/http/http.c | 7 +++++++ source4/lib/http/http_internal.h | 9 --------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/source4/lib/http/http.c b/source4/lib/http/http.c index 99df2d523dc..a6bf66ed679 100644 --- a/source4/lib/http/http.c +++ b/source4/lib/http/http.c @@ -66,6 +66,13 @@ static int http_response_needs_body(struct http_request *req) return 0; } +struct http_read_response_state { + enum http_parser_state parser_state; + size_t max_headers_size; + uint64_t max_content_length; + DATA_BLOB buffer; + struct http_request *response; +}; /** * Parses the HTTP headers diff --git a/source4/lib/http/http_internal.h b/source4/lib/http/http_internal.h index 33b9ec081ff..ec17f7e2850 100644 --- a/source4/lib/http/http_internal.h +++ b/source4/lib/http/http_internal.h @@ -47,13 +47,4 @@ struct http_conn { } tstreams; }; -struct http_read_response_state { - enum http_parser_state parser_state; - size_t max_headers_size; - uint64_t max_content_length; - DATA_BLOB buffer; - struct http_request *response; -}; - - #endif /* _HTTP_INTERNAL_H_ */ -- 2.47.3