static PyObject * python_api_win_focus(PyObject *self, PyObject *args) { PyObject *tag = NULL; if (!PyArg_ParseTuple(args, "O", &tag)) { Py_RETURN_NONE; } char *tag_str = python_str_or_unicode_to_string(tag); allow_python_threads(); api_win_focus(tag_str); free(tag_str); disable_python_threads(); Py_RETURN_NONE; }
static int c_api_win_focus(char *tag) { return api_win_focus(tag); }