]> 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)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 12 Mar 2018 08:42:26 +0000 (10:42 +0200)
src/lib-http/http-client-connection.c
src/lib-http/http-client-private.h

index 037588704d466c636df1bfb9f1707371fe15fe0f..13e3ff710848844b35004a9fb4623331a7026eb9 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);