python: Do not depend on access to internal data structures.
authorJustus Winter <justus@g10code.com>
Mon, 11 Jul 2016 14:34:15 +0000 (16:34 +0200)
committerJustus Winter <justus@g10code.com>
Mon, 11 Jul 2016 15:50:58 +0000 (17:50 +0200)
commit98cba522c906115efcba1f8cc0bec7e5edb51ecd
treef7c9a12d934907e3b3eab109f745dfb0f9d9fe77
parentc53f87c5f9ca63119152f41dcebfb175d4df2cef
python: Do not depend on access to internal data structures.

* lang/python/gpgme.i (gpgme_data_t): Rework so that it works without
access to the definition of 'struct gpgme_data'.
* lang/python/helpers.c (object_to_gpgme_data_t): Add assertion.

Signed-off-by: Justus Winter <justus@g10code.com>
lang/python/gpgme.i
lang/python/helpers.c