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; } }
static char * c_api_get_current_muc(void) { return api_get_current_muc(); }