static PyObject* python_api_cons_show_themed(PyObject *self, PyObject *args) { PyObject *group = NULL; PyObject *key = NULL; PyObject *def = NULL; PyObject *message = NULL; if (!PyArg_ParseTuple(args, "OOOO", &group, &key, &def, &message)) { Py_RETURN_NONE; } char *group_str = python_str_or_unicode_to_string(group); char *key_str = python_str_or_unicode_to_string(key); char *def_str = python_str_or_unicode_to_string(def); char *message_str = python_str_or_unicode_to_string(message); allow_python_threads(); api_cons_show_themed(group_str, key_str, def_str, message_str); free(group_str); free(key_str); free(def_str); free(message_str); disable_python_threads(); Py_RETURN_NONE; }
static int c_api_cons_show_themed(const char *const group, const char *const item, const char *const def, const char *const message) { return api_cons_show_themed(group, item, def, message); }