Esempio n. 1
0
static PyObject *
python_api_get_current_muc(PyObject *self, PyObject *args)
{
    allow_python_threads();
    char *room = api_get_current_muc();
    disable_python_threads();
    if (room) {
        return Py_BuildValue("s", room);
    } else {
        Py_RETURN_NONE;
    }
}
Esempio n. 2
0
static char *
c_api_get_current_muc(void)
{
    return api_get_current_muc();
}