diff options
author | Justus Winter <[email protected]> | 2016-07-28 13:24:05 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-07-28 13:26:43 +0000 |
commit | b5aa05c3b261c3846ebbcf76e7505cff5459f918 (patch) | |
tree | 3274237139c81103aa9395b0572efea00a8dfcd7 /lang/python/helpers.c | |
parent | python: Rename private functions. (diff) | |
download | gpgme-b5aa05c3b261c3846ebbcf76e7505cff5459f918.tar.gz gpgme-b5aa05c3b261c3846ebbcf76e7505cff5459f918.zip |
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 <[email protected]>
Diffstat (limited to 'lang/python/helpers.c')
-rw-r--r-- | lang/python/helpers.c | 14 |
1 files changed, 7 insertions, 7 deletions
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, |