diff options
author | Werner Koch <[email protected]> | 2009-06-09 16:01:02 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2009-06-09 16:01:02 +0000 |
commit | caf36ce1ce34e88de870ea4e7586c3133a9f7afa (patch) | |
tree | 49a81dbfd1f4cf482c31d06c6f2bc9c8a3d75b95 /src/gpgme.h.in | |
parent | Do not distribute gpgme.h. (diff) | |
download | gpgme-caf36ce1ce34e88de870ea4e7586c3133a9f7afa.tar.gz gpgme-caf36ce1ce34e88de870ea4e7586c3133a9f7afa.zip |
Add gpgme_io_write and gpgme_io_read.
Minor cleanups.
Diffstat (limited to '')
-rw-r--r-- | src/gpgme.h.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpgme.h.in b/src/gpgme.h.in index a9a4a3f7..46f8769c 100644 --- a/src/gpgme.h.in +++ b/src/gpgme.h.in @@ -961,6 +961,11 @@ void gpgme_set_io_cbs (gpgme_ctx_t ctx, gpgme_io_cbs_t io_cbs); /* Get the current I/O callback functions. */ void gpgme_get_io_cbs (gpgme_ctx_t ctx, gpgme_io_cbs_t io_cbs); +/* Wrappers around the internal I/O functions for use with + gpgme_passphrase_cb_t and gpgme_edit_cb_t. */ +ssize_t gpgme_io_read (int fd, void *buffer, size_t count); +ssize_t gpgme_io_write (int fd, const void *buffer, size_t count); + /* Process the pending operation and, if HANG is non-zero, wait for the pending operation to finish. */ gpgme_ctx_t gpgme_wait (gpgme_ctx_t ctx, gpgme_error_t *status, int hang); |