[dovecot/core] dafdbf: lib: Change/clarify o_stream_get_buffer_used/avail...
GitHub
noreply at github.com
Tue Mar 13 10:00:42 EET 2018
Branch: refs/heads/master-2.3
Home: https://github.com/dovecot/core
Commit: dafdbfdbcdccbdca1069730408670c7bb94fe5eb
https://github.com/dovecot/core/commit/dafdbfdbcdccbdca1069730408670c7bb94fe5eb
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2018-03-13 (Tue, 13 Mar 2018)
Changed paths:
M src/lib/ostream-private.h
M src/lib/ostream.c
M src/lib/ostream.h
Log Message:
-----------
lib: Change/clarify o_stream_get_buffer_used/avail_size() APIs
ostream.get_used_size() is deprecated and replaced by get_buffer_used_size()
and get_buffer_avail_size().
Commit: d941f9c24955bd7e78a473da24c36f0dc6df53e7
https://github.com/dovecot/core/commit/d941f9c24955bd7e78a473da24c36f0dc6df53e7
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2018-03-13 (Tue, 13 Mar 2018)
Changed paths:
M src/lib/Makefile.am
R src/lib/ostream-escaped.c
R src/lib/ostream-escaped.h
M src/lib/test-lib.inc
R src/lib/test-ostream-escaped.c
Log Message:
-----------
lib: Remove ostream-escaped
It can't implement o_stream_get_buffer_avail_size() correctly with its
current API. Nothing uses it currently, so easier to just remove it
entirely.
Commit: 7b4f32ab7e5fd270dd87ac26e3ad1c7a08c584eb
https://github.com/dovecot/core/commit/7b4f32ab7e5fd270dd87ac26e3ad1c7a08c584eb
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2018-03-13 (Tue, 13 Mar 2018)
Changed paths:
M src/lib/ostream-multiplex.c
Log Message:
-----------
lib: ostream-multiplex - Implement the new get_buffer_used/avail_size() APIs
Commit: 159d7780cab726da8269750eb88187e11cd52f78
https://github.com/dovecot/core/commit/159d7780cab726da8269750eb88187e11cd52f78
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2018-03-13 (Tue, 13 Mar 2018)
Changed paths:
M src/lib-ssl-iostream/ostream-openssl.c
Log Message:
-----------
lib-ssl-iostream: Implement the new ostream.get_buffer_used/avail_size() APIs
Commit: 25c0f5136d1b85b377bf3aa65bbd4429fcb4ecea
https://github.com/dovecot/core/commit/25c0f5136d1b85b377bf3aa65bbd4429fcb4ecea
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2018-03-13 (Tue, 13 Mar 2018)
Changed paths:
M src/lib-compression/ostream-bzlib.c
M src/lib-compression/ostream-lz4.c
M src/lib-compression/ostream-lzma.c
M src/lib-compression/ostream-zlib.c
Log Message:
-----------
lib-compression: Implement the new ostream.get_buffer_used/avail_size() APIs
The avail_size() implementation isn't fully correct for bzlib/zlib/lzma.
Fixing it requires larger changes though.
Commit: 884e2a16f179511c82592d8ca0f42afaf76cb471
https://github.com/dovecot/core/commit/884e2a16f179511c82592d8ca0f42afaf76cb471
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2018-03-13 (Tue, 13 Mar 2018)
Changed paths:
M src/lib/ostream-file.c
Log Message:
-----------
lib: ostream-file - Implement the new ostream.get_buffer_used_size() API
It's implemented the same way as the old get_used_size(). The default
implementation for get_buffer_avail_size() also works with this.
Commit: f6a49ec42f0996aa64c9bb11ff9f03552cc0b30f
https://github.com/dovecot/core/commit/f6a49ec42f0996aa64c9bb11ff9f03552cc0b30f
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2018-03-13 (Tue, 13 Mar 2018)
Changed paths:
M src/lib/ostream-buffer.c
Log Message:
-----------
lib: ostream-buffer - Implement the new ostream.get_buffer_used_size() API
It's implemented the same way as the old get_used_size(). The default
implementation for get_buffer_avail_size() also works with this.
Commit: 1ea0f535f046edb77036cfbda8e165cd7b15be97
https://github.com/dovecot/core/commit/1ea0f535f046edb77036cfbda8e165cd7b15be97
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2018-03-13 (Tue, 13 Mar 2018)
Changed paths:
M src/lib-test/test-ostream.c
Log Message:
-----------
lib-test: test-ostream - Implement the new ostream.get_buffer_used_size() API
It's implemented the same way as the old get_used_size(). The default
implementation for get_buffer_avail_size() also works with this.
Commit: dc030eac6bfb4548b1d576a2e53a6ab9a399f588
https://github.com/dovecot/core/commit/dc030eac6bfb4548b1d576a2e53a6ab9a399f588
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2018-03-13 (Tue, 13 Mar 2018)
Changed paths:
M src/lib/ostream-private.h
M src/lib/ostream.c
Log Message:
-----------
lib: Remove ostream.get_used_size()
Removes backwards compatibility.
Compare: https://github.com/dovecot/core/compare/976105f17e11...dc030eac6bfb
More information about the dovecot-cvs
mailing list