static PyObject* python_api_settings_string_set(PyObject *self, PyObject *args) { PyObject *group = NULL; PyObject *key = NULL; PyObject *val = NULL; if (!PyArg_ParseTuple(args, "OOO", &group, &key, &val)) { Py_RETURN_NONE; } char *group_str = python_str_or_unicode_to_string(group); char *key_str = python_str_or_unicode_to_string(key); char *val_str = python_str_or_unicode_to_string(val); allow_python_threads(); api_settings_string_set(group_str, key_str, val_str); free(group_str); free(key_str); free(val_str); disable_python_threads(); Py_RETURN_NONE; }
static void c_api_settings_string_set(char *group, char *key, char *value) { api_settings_string_set(group, key, value); }