From: Ralph Boehme Date: Tue, 26 Mar 2019 13:53:21 +0000 (+0100) Subject: s4:lib/http: move struct http_send_request_state to the implementation X-Git-Tag: tdb-1.4.2~270 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3ffd74e915f579bcf759f17c32aedb0c5a9f152b;p=thirdparty%2Fsamba.git s4:lib/http: move struct http_send_request_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 9218c19ce31..99df2d523dc 100644 --- a/source4/lib/http/http.c +++ b/source4/lib/http/http.c @@ -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 */ diff --git a/source4/lib/http/http_internal.h b/source4/lib/http/http_internal.h index 13b748f5716..33b9ec081ff 100644 --- a/source4/lib/http/http_internal.h +++ b/source4/lib/http/http_internal.h @@ -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;