[dovecot/core] e282d7: lib: Change/clarify o_stream_get_buffer_used/avail...
GitHub
noreply at github.com
Thu Mar 8 15:00:29 EET 2018
Branch: refs/heads/master
Home: https://github.com/dovecot/core
Commit: e282d7767b1988214a92d62075bda1308028db98
https://github.com/dovecot/core/commit/e282d7767b1988214a92d62075bda1308028db98
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2018-03-08 (Thu, 08 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: 8feb56fd352f3376f7c21d6be2aedf545cd16cbc
https://github.com/dovecot/core/commit/8feb56fd352f3376f7c21d6be2aedf545cd16cbc
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2018-03-08 (Thu, 08 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: e82807fd7decc52dc28ed314bde32a06101d8387
https://github.com/dovecot/core/commit/e82807fd7decc52dc28ed314bde32a06101d8387
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2018-03-08 (Thu, 08 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: 2b7ee96bdbc5a225597cefa447569d206f737384
https://github.com/dovecot/core/commit/2b7ee96bdbc5a225597cefa447569d206f737384
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2018-03-08 (Thu, 08 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: 265c88f96d7ab3ca7d01bd8b70ecadb61752e961
https://github.com/dovecot/core/commit/265c88f96d7ab3ca7d01bd8b70ecadb61752e961
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2018-03-08 (Thu, 08 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: 4e7e97b0a0891a8111291b575c4dd13e9b2b7968
https://github.com/dovecot/core/commit/4e7e97b0a0891a8111291b575c4dd13e9b2b7968
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2018-03-08 (Thu, 08 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: eafc8d8d6a011cbafab819ff14939ae592a543fe
https://github.com/dovecot/core/commit/eafc8d8d6a011cbafab819ff14939ae592a543fe
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2018-03-08 (Thu, 08 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: e29a2b316ef1dbb30bd701fc3e1e095cea57c291
https://github.com/dovecot/core/commit/e29a2b316ef1dbb30bd701fc3e1e095cea57c291
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2018-03-08 (Thu, 08 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: f7ad42f80d66d13e12f00382895feb5840085700
https://github.com/dovecot/core/commit/f7ad42f80d66d13e12f00382895feb5840085700
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2018-03-08 (Thu, 08 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/8762b54cbfb0...f7ad42f80d66
More information about the dovecot-cvs
mailing list