]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: connection - Expose connection_update_counters()
authorAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 9 Feb 2023 07:47:52 +0000 (09:47 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 16 Mar 2023 05:38:57 +0000 (07:38 +0200)
src/lib/connection.c
src/lib/connection.h

index 1ffb0415af0710c28ba57603dbdbee131cb3755b..7acf0a33b8a08256356c61ae2bd780e4c271b900 100644 (file)
@@ -791,7 +791,7 @@ int connection_client_connect_async(struct connection *conn)
        return 0;
 }
 
-static void connection_update_counters(struct connection *conn)
+void connection_update_counters(struct connection *conn)
 {
        if (conn->input != NULL)
                event_add_int(conn->event, "bytes_in", conn->input->v_offset);
index 1ed112f950399cc454d8ad77246954565105e7f4..8318dbf83c4ebe09c84cf8a518f7b2af6cb5bdf5 100644 (file)
@@ -230,6 +230,9 @@ void connection_update_event(struct connection *conn);
 /* Update connection properties and labels */
 void connection_update_properties(struct connection *conn);
 
+/* Update byte counters in event */
+void connection_update_counters(struct connection *conn);
+
 /* This needs to be called if the input/output streams are changed */
 void connection_streams_changed(struct connection *conn);