From: Ralph Boehme Date: Tue, 26 Mar 2019 13:53:21 +0000 (+0100) Subject: s4:lib/http: move struct http_read_response_state to the implementation X-Git-Tag: tdb-1.4.2~269 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab389bca9c6d0e1723b471eb1a2e8d38648efbc4;p=thirdparty%2Fsamba.git 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 --- 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_ */