s4:lib/http: move struct http_send_request_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 9218c19ce31e95363a961d6a1782af67f650ad5f..99df2d523dc659683af21d744165e7846999b0f4 100644 (file)
@@ -752,6 +752,19 @@ static NTSTATUS http_push_body(TALLOC_CTX *mem_ctx,
        return NT_STATUS_OK;
 }
 
+struct http_send_request_state {
+       struct tevent_context   *ev;
+       struct tstream_context  *stream;
+       struct loadparm_context *lp_ctx;
+       struct cli_credentials  *credentials;
+       struct tevent_queue     *send_queue;
+       struct http_request     *request;
+       DATA_BLOB               buffer;
+       struct iovec            iov;
+       ssize_t                 nwritten;
+       int                     sys_errno;
+};
+
 /**
  * Sends and HTTP request
  */
index 13b748f5716ef917756b3982705efa6755527e56..33b9ec081ff9f6ef968559acce7299332caec93f 100644 (file)
@@ -47,19 +47,6 @@ struct http_conn {
        } tstreams;
 };
 
-struct http_send_request_state {
-       struct tevent_context   *ev;
-       struct tstream_context  *stream;
-       struct loadparm_context *lp_ctx;
-       struct cli_credentials  *credentials;
-       struct tevent_queue     *send_queue;
-       struct http_request     *request;
-       DATA_BLOB               buffer;
-       struct iovec            iov;
-       ssize_t                 nwritten;
-       int                     sys_errno;
-};
-
 struct http_read_response_state {
        enum http_parser_state  parser_state;
        size_t                  max_headers_size;