]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:lib/http: move struct http_read_response_state to the implementation
authorRalph Boehme <slow@samba.org>
Tue, 26 Mar 2019 13:53:21 +0000 (14:53 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 7 Aug 2019 12:54:40 +0000 (12:54 +0000)
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 <slow@samba.org>
Reviewed-by: Samuel Cabrero <scabrero@suse.de>
source4/lib/http/http.c
source4/lib/http/http_internal.h

index 99df2d523dc659683af21d744165e7846999b0f4..a6bf66ed679d071534688253e0bad92dce859c82 100644 (file)
@@ -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
index 33b9ec081ff9f6ef968559acce7299332caec93f..ec17f7e2850ef83a974299e69d4193e8340a70a9 100644 (file)
@@ -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_ */