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)
commitc6daf799437f3edd74b57ea1da445dcd2b6defea
tree5c5c9488f4cbf31ec7193a77e254b369a96b1e50
parent12880b3b5c00cdac75af8f74e5807b49c7677938
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.
trunk/gpgme/ChangeLog
trunk/gpgme/data-fd.c
trunk/gpgme/data-mem.c
trunk/gpgme/data-stream.c
trunk/gpgme/data-user.c
trunk/gpgme/data.c
trunk/gpgme/data.h
trunk/gpgme/engine-gpgsm.c
trunk/gpgme/gpgme.h