From b5aa05c3b261c3846ebbcf76e7505cff5459f918 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 28 Jul 2016 15:24:05 +0200 Subject: python: Rename exported functions. Avoid the name pygpgme, as this is the name of another popular Python binding for GPGME. This commit renames all functions that are exported to the Python world. * lang/python/helpers.c: Rename all exported functions. * lang/python/helpers.h: Likewise. * lang/python/pyme/core.py: Likewise. Signed-off-by: Justus Winter --- lang/python/helpers.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lang/python/helpers.c') diff --git a/lang/python/helpers.c b/lang/python/helpers.c index 27e7274c..0406f9f8 100644 --- a/lang/python/helpers.c +++ b/lang/python/helpers.c @@ -123,7 +123,7 @@ static void _pyme_stash_callback_exception(PyObject *weak_self) Py_DECREF(excinfo); } -PyObject *pygpgme_raise_callback_exception(PyObject *self) +PyObject *pyme_raise_callback_exception(PyObject *self) { PyObject *ptype, *pvalue, *ptraceback, *excinfo; @@ -413,7 +413,7 @@ static gpgme_error_t pyPassphraseCb(void *hook, } PyObject * -pygpgme_set_passphrase_cb(PyObject *self, PyObject *cb) { +pyme_set_passphrase_cb(PyObject *self, PyObject *cb) { PyObject *wrapped; gpgme_ctx_t ctx; @@ -495,7 +495,7 @@ static void pyProgressCb(void *hook, const char *what, int type, int current, } PyObject * -pygpgme_set_progress_cb(PyObject *self, PyObject *cb) { +pyme_set_progress_cb(PyObject *self, PyObject *cb) { PyObject *wrapped; gpgme_ctx_t ctx; @@ -592,7 +592,7 @@ static gpgme_error_t pyStatusCb(void *hook, const char *keyword, } PyObject * -pygpgme_set_status_cb(PyObject *self, PyObject *cb) { +pyme_set_status_cb(PyObject *self, PyObject *cb) { PyObject *wrapped; gpgme_ctx_t ctx; @@ -910,9 +910,9 @@ static void pyDataReleaseCb(void *hook) } PyObject * -pygpgme_data_new_from_cbs(PyObject *self, - PyObject *pycbs, - gpgme_data_t *r_data) +pyme_data_new_from_cbs(PyObject *self, + PyObject *pycbs, + gpgme_data_t *r_data) { static struct gpgme_data_cbs cbs = { pyDataReadCb, -- cgit