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)
commit695ec56ffbf3cf1cb4722f5fab33dd2bdb43a9af
tree0292c4e761d3ee380634ac961e687b4d75777377
parenteccdb17c30ef564767e5279cc8eae9bc937e0e48
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.
doc/ChangeLog
doc/gpgme.texi
gpgme/ChangeLog
gpgme/context.h
gpgme/gpgme.c
gpgme/gpgme.h
gpgme/op-support.c
gpgme/wait-global.c
gpgme/wait-private.c
gpgme/wait-user.c