Home GnuPG
Diffusion GPGME 8b57f06e0c04

python: Support status callbacks.
8b57f06e0c04Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

python: Support status callbacks.

* lang/python/helpers.c (pyStatusCb): New function.
(pygpgme_set_status_cb): Likewise.
* lang/python/helpers.h (pygpgme_set_status_cb): New prototype.
* lang/python/pyme/core.py (Context.__init__): Initialize
'last_statuscb'.
(Context._free_statuscb): New function.
(Context.set_status_cb): Likewise.
* lang/python/tests/t-callbacks.py: Test status callbacks.
  • Signed-off-by: Justus Winter <justus@gnupg.org>

Details

Provenance
justusAuthored on May 24 2016, 3:14 PM
Parents
rM72afb68f8c2f: python: Improve docstring.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@gnupg.org> committed rM8b57f06e0c04: python: Support status callbacks. (authored by Justus Winter <justus@gnupg.org>).May 24 2016, 6:00 PM