2007-01-18 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Thu, 18 Jan 2007 17:59:26 +0000 (17:59 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Thu, 18 Jan 2007 17:59:26 +0000 (17:59 +0000)
commit9e1edec4ffd903c2481f6a3b3c46e6c37a97d665
treefdb0369e28bb5cce4edd1e22fcb0705440765a99
parente08d4a32d67bc2217a232c9c92f5accbaa931550
2007-01-18  Marcus Brinkmann  <marcus@g10code.de>

* data.h (_gpgme_data_get_fd): Add prototype.
(gpgme_data_get_fd_cb): New type.
(struct _gpgme_data_cbs): New member get_fd.
* data.c (_gpgme_data_get_fd): New function.
* data-fd.c (fd_get_fd): New function.
(fd_cbs): Add fd_get_fd.
* data-stream.c (stream_get_fd): New function.
(stream_cbs): Add stream_get_fd.
* data-mem.c (mem_cbs): Add NULL for get_fd callback.
* data-user.c (user_cbs): Likewise.
* engine-gpgsm.c (gpgsm_set_fd) [USE_DESCRIPTOR_PASSING]: Try to
short-cut by passing the data descriptor directly.
gpgme/ChangeLog
gpgme/data-fd.c
gpgme/data-mem.c
gpgme/data-stream.c
gpgme/data-user.c
gpgme/data.c
gpgme/data.h
gpgme/engine-gpgsm.c
gpgme/gpgme.h