]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: client: Make http_client_connection_lost() available outside http-client...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sat, 17 Feb 2018 10:10:05 +0000 (11:10 +0100)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Sat, 17 Feb 2018 14:49:41 +0000 (15:49 +0100)
src/lib-http/http-client-connection.c
src/lib-http/http-client-private.h

index 236fa5dea57ec68f88eb1576942f252e53504ea5..c32d0df3dfbcbc95ddc0bd458aa92d653544f917 100644 (file)
@@ -235,9 +235,8 @@ http_client_connection_abort_temp_error(struct http_client_connection **_conn,
        http_client_connection_close(_conn);
 }
 
-static void
-http_client_connection_lost(struct http_client_connection **_conn,
-       const char *error) ATTR_NULL(2)
+void http_client_connection_lost(struct http_client_connection **_conn,
+                                const char *error)
 {
        struct http_client_connection *conn = *_conn;
        const char *sslerr;
index 43463f4e42fdb43b68b5e12b5d8f79113d40c95e..b89d8f13f208162d3f81c0f7a9380ed424ee4896 100644 (file)
@@ -515,6 +515,9 @@ void http_client_connection_ref(struct http_client_connection *conn);
 bool http_client_connection_unref(struct http_client_connection **_conn);
 void http_client_connection_close(struct http_client_connection **_conn);
 
+void http_client_connection_lost(struct http_client_connection **_conn,
+                                const char *error) ATTR_NULL(2);
+
 void http_client_connection_peer_closed(struct http_client_connection **_conn);
 void http_client_connection_request_destroyed(
        struct http_client_connection *conn, struct http_client_request *req);