diff options
author | Marcus Brinkmann <[email protected]> | 2005-06-02 21:59:34 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2005-06-02 21:59:34 +0000 |
commit | 7ccc3083305c8c116a5be85601e27ceed37947d9 (patch) | |
tree | 2606686e4608d5989afdd55b6d881d1e45626cc2 /gpgme/wait-user.c | |
parent | * passphrase.c (_gpgme_passphrase_status_handler): Take care of (diff) | |
download | gpgme-7ccc3083305c8c116a5be85601e27ceed37947d9.tar.gz gpgme-7ccc3083305c8c116a5be85601e27ceed37947d9.zip |
2005-06-02 Marcus Brinkmann <[email protected]>
* wait.h (_gpgme_run_io_cb): New prototype.
* wait.c (_gpgme_run_io_cb): New function.
* wait-global.c (gpgme_wait): Call it.
* wait-user.c (_gpgme_user_io_cb_handler): Likewise.
* wait-private.c (_gpgme_wait_on_condition): Likewise.
Diffstat (limited to '')
-rw-r--r-- | gpgme/wait-user.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gpgme/wait-user.c b/gpgme/wait-user.c index 0f046f2e..605401e9 100644 --- a/gpgme/wait-user.c +++ b/gpgme/wait-user.c @@ -42,15 +42,12 @@ _gpgme_user_io_cb_handler (void *data, int fd) gpgme_error_t err; struct tag *tag = (struct tag *) data; gpgme_ctx_t ctx; - struct wait_item_s *item; assert (data); ctx = tag->ctx; assert (ctx); - item = (struct wait_item_s *) ctx->fdt.fds[tag->idx].opaque; - assert (item); - err = (*item->handler) (item->handler_value, fd); + err = _gpgme_run_io_cb (&ctx->fdt.fds[tag->idx], 0); if (err) { unsigned int idx; |