2008-06-27 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Fri, 27 Jun 2008 16:07:33 +0000 (16:07 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Fri, 27 Jun 2008 16:07:33 +0000 (16:07 +0000)
commit0b6c67debf19eff094a6f3a8d2b0bf9410ae9454
treefb44b126738c8f39a1398a6d618e3592747c7eb4
parent38782bb4a3dfaf56369923576c85b2227ebcae77
2008-06-27  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Cancellation): Document gpgme_cancel_async.

gpgme/
2008-06-27  Marcus Brinkmann  <marcus@g10code.de>

* context.h: Include "sema.h".
(struct gpgme_context): New members lock and canceled.
* gpgme.c (gpgme_new): Initialize lock.
(gpgme_release): Destroy lock.
(gpgme_cancel_async): New function.
* op-support.c (_gpgme_op_reset): Reset the canceled flag.
* wait-global.c (gpgme_wait): Check cancel flag before processing
any I/O callbacks.
* wait-private.c (_gpgme_wait_on_condition): Likewise.
* wait-user.c (_gpgme_user_io_cb_handler): Likewise.
trunk/doc/ChangeLog
trunk/doc/gpgme.texi
trunk/gpgme/ChangeLog
trunk/gpgme/context.h
trunk/gpgme/gpgme.c
trunk/gpgme/gpgme.h
trunk/gpgme/op-support.c
trunk/gpgme/wait-global.c
trunk/gpgme/wait-private.c
trunk/gpgme/wait-user.c