From 3ffd74e915f579bcf759f17c32aedb0c5a9f152b 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_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 --- source4/lib/http/http.c | 13 +++++++++++++ source4/lib/http/http_internal.h | 13 ------------- 2 files changed, 13 insertions(+), 13 deletions(-) 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; -- 2.47.3