static PyObject * pycmap_set_transfer(PyObject *self, PyObject *args) { PyObject *pycmap; int which; e_transferType transfer; ColorMap *cmap; if(!PyArg_ParseTuple(args,"Oii",&pycmap,&which,&transfer)) { return NULL; } cmap = (ColorMap *)PyCObject_AsVoidPtr(pycmap); if(!cmap) { return NULL; } cmap->set_transfer(which,transfer); Py_INCREF(Py_None); return Py_None; }