diff options
Diffstat (limited to 'lang/cpp/src')
| -rw-r--r-- | lang/cpp/src/context.cpp | 5 | ||||
| -rw-r--r-- | lang/cpp/src/context.h | 1 | 
2 files changed, 6 insertions, 0 deletions
| diff --git a/lang/cpp/src/context.cpp b/lang/cpp/src/context.cpp index 6dd6b6db..e868d387 100644 --- a/lang/cpp/src/context.cpp +++ b/lang/cpp/src/context.cpp @@ -1343,6 +1343,11 @@ Error Context::cancelPendingOperation()      return Error(gpgme_cancel_async(d->ctx));  } +Error Context::cancelPendingOperationImmediately() +{ +    return Error(gpgme_cancel(d->ctx)); +} +  bool Context::poll()  {      gpgme_error_t e = GPG_ERR_NO_ERROR; diff --git a/lang/cpp/src/context.h b/lang/cpp/src/context.h index 9cd35a5c..4021aa97 100644 --- a/lang/cpp/src/context.h +++ b/lang/cpp/src/context.h @@ -484,6 +484,7 @@ public:      GpgME::Error wait();      GpgME::Error lastError() const;      GpgME::Error cancelPendingOperation(); +    GpgME::Error cancelPendingOperationImmediately();      class Private;      const Private *impl() const | 
