From f42cd70f18d53df47cc2d027bade736377d39b71 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 19 Jul 2018 09:50:30 +0200 Subject: core: New interface gpgme_data_new_from_estream. * src/gpgme.h.in (gpgme_data_new_from_estream): New. * src/data-estream.c: New. * src/data.h (gpgme_data): New union member e_stream. -- The estream functions (gpgrt_fopen et al.) are any waypart of the required libgpg-error library and thus it makes sense to provide this convenience interface. Signed-off-by: Werner Koch --- src/gpgme.h.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gpgme.h.in') diff --git a/src/gpgme.h.in b/src/gpgme.h.in index 421199a9..35968017 100644 --- a/src/gpgme.h.in +++ b/src/gpgme.h.in @@ -1180,6 +1180,8 @@ gpgme_error_t gpgme_data_new_from_cbs (gpgme_data_t *dh, gpgme_error_t gpgme_data_new_from_fd (gpgme_data_t *dh, int fd); gpgme_error_t gpgme_data_new_from_stream (gpgme_data_t *dh, FILE *stream); +gpgme_error_t gpgme_data_new_from_estream (gpgme_data_t *r_dh, + gpgrt_stream_t stream); /* Return the encoding attribute of the data buffer DH */ gpgme_data_encoding_t gpgme_data_get_encoding (gpgme_data_t dh); -- cgit v1.2.3