aboutsummaryrefslogtreecommitdiffstats
path: root/src/visibility.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-06-26 13:24:43 +0000
committerWerner Koch <[email protected]>2020-06-26 13:25:27 +0000
commit3413489d25577e3fe7f529b8e610a45d2bd1857c (patch)
tree466a62f1a7cb34d8811a01f868157f30e370985e /src/visibility.c
parentbuild: Fix the gpg-error-config test for cross build. (diff)
downloadlibgpg-error-3413489d25577e3fe7f529b8e610a45d2bd1857c.tar.gz
libgpg-error-3413489d25577e3fe7f529b8e610a45d2bd1857c.zip
estream: Add gpgrt_fcancel
* src/estream.c (do_close): Add arg 'cancel_mode' and chnage all callers. (_gpgrt_fcancel): New. * src/gpg-error.def.in, src/gpg-error.vers: Add function. * src/visibility.c (gpgrt_fcancel): New. * src/gpg-error.h.in (gpgrt_fcancel): New. -- Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/visibility.c')
-rw-r--r--src/visibility.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/visibility.c b/src/visibility.c
index 2e6aed7..85caef3 100644
--- a/src/visibility.c
+++ b/src/visibility.c
@@ -251,6 +251,12 @@ gpgrt_fclose (estream_t stream)
}
int
+gpgrt_fcancel (estream_t stream)
+{
+ return _gpgrt_fcancel (stream);
+}
+
+int
gpgrt_fclose_snatch (estream_t stream, void **r_buffer, size_t *r_buflen)
{
return _gpgrt_fclose_snatch (stream, r_buffer, r_buflen);