diff options
author | Werner Koch <[email protected]> | 2017-02-02 08:50:47 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-02-02 08:53:48 +0000 |
commit | d19bea52afe6efb66a46af6aa4d09928c5d05ee5 (patch) | |
tree | da8bdaad7cc38590a9815a0c8791a3df1c6ddf59 /src/gpgme.h.in | |
parent | core: Move all deprecated stuff to the end of gpgme.h. (diff) | |
download | gpgme-d19bea52afe6efb66a46af6aa4d09928c5d05ee5.tar.gz gpgme-d19bea52afe6efb66a46af6aa4d09928c5d05ee5.zip |
core: Un-deprecate gpgme_data_rewind.
* src/gpgme.h.in (gpgme_data_rewind): Un-deprecate.
* src/data-compat.c (gpgme_data_rewind): Move to ...
* src/data.c (gpgme_data_rewind): here.
--
That function is very convenient because it is required a lot with
memory streams. It also documents the intention of the caller better
than gpgme_data_seek with its addition parameters and the need to map
system errors. Thus it does not make sense to make it a first class
citizen again.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/gpgme.h.in')
-rw-r--r-- | src/gpgme.h.in | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gpgme.h.in b/src/gpgme.h.in index e3ca1657..769c2c85 100644 --- a/src/gpgme.h.in +++ b/src/gpgme.h.in @@ -1165,9 +1165,8 @@ gpgme_error_t gpgme_data_new_from_filepart (gpgme_data_t *r_dh, const char *fname, FILE *fp, @API__OFF_T@ offset, size_t length); -/* Reset the read pointer in DH. Deprecated, please use - gpgme_data_seek instead. */ -gpgme_error_t gpgme_data_rewind (gpgme_data_t dh) _GPGME_DEPRECATED(0,4); +/* Convenience function to do a gpgme_data_seek (dh, 0, SEEK_SET). */ +gpgme_error_t gpgme_data_rewind (gpgme_data_t dh); |