diff options
| author | Peter Wemm <peter@FreeBSD.org> | 2018-05-08 03:44:38 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 2018-05-08 03:44:38 +0000 |
| commit | 3faf8d6bffc5d0fb2525ba37bb504c53366caf9d (patch) | |
| tree | 7e47911263e75034b767fe34b2f8d3d17e91f66d /subversion/include/svn_base64.h | |
| parent | a55fb3c0d5eca7d887798125d5b95942b1f01d4b (diff) | |
Diffstat (limited to 'subversion/include/svn_base64.h')
| -rw-r--r-- | subversion/include/svn_base64.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/subversion/include/svn_base64.h b/subversion/include/svn_base64.h index cc1820fb93cf..90316afba334 100644 --- a/subversion/include/svn_base64.h +++ b/subversion/include/svn_base64.h @@ -46,11 +46,26 @@ extern "C" { */ /** Return a writable generic stream which will encode binary data in - * base64 format and write the encoded data to @a output. Be sure to - * close the stream when done writing in order to squeeze out the last - * bit of encoded data. The stream is allocated in @a pool. + * base64 format and write the encoded data to @a output. If @a break_lines + * is true, newlines will be inserted periodically; otherwise the output + * stream will only consist of base64 encoding characters. Be sure to close + * the stream when done writing in order to squeeze out the last bit of + * encoded data. The stream is allocated in @a pool. + * + * @since New in 1.10. */ svn_stream_t * +svn_base64_encode2(svn_stream_t *output, + svn_boolean_t break_lines, + apr_pool_t *pool); + +/** + * Same as svn_base64_encode2, but with @a break_lines always TRUE. + * + * @deprecated Provided for backward compatibility with the 1.9 API. + */ +SVN_DEPRECATED +svn_stream_t * svn_base64_encode(svn_stream_t *output, apr_pool_t *pool); |
