Esempio n. 1
0
static PyObject *
python_api_get_current_recipient(PyObject *self, PyObject *args)
{
    allow_python_threads();
    char *recipient = api_get_current_recipient();
    disable_python_threads();
    if (recipient) {
        return Py_BuildValue("s", recipient);
    } else {
        Py_RETURN_NONE;
    }
}
Esempio n. 2
0
static char *
c_api_get_current_recipient(void)
{
    return api_get_current_recipient();
}