1 http://bugs.gentoo.org/314627
2 http://bugs.gentoo.org/257550
8 dict_to_options(PyObject *dict)
13 ao_option *head = NULL;
19 - if(PyArg_ParseTupleAndKeywords(args, kwargs, "s|llllO!sl",
20 + if(PyArg_ParseTupleAndKeywords(args, kwargs, "s|iiiiO!si",
21 (char **) driver_name_kwlist,
25 *driver_id = ao_driver_id(driver_name);
28 - if(!(PyArg_ParseTupleAndKeywords(args, kwargs, "i|llllO!sl",
29 + if(!(PyArg_ParseTupleAndKeywords(args, kwargs, "i|iiiiO!si",
30 (char **) driver_id_kwlist,
37 - retobj = (ao_Object *) PyObject_NEW(ao_Object, &ao_Type);
38 + retobj = (ao_Object *) PyObject_New(ao_Object, &ao_Type);
40 + retobj->driver_id = driver_id;
41 return (PyObject *) retobj;
45 py_ao_dealloc(ao_Object *self)
56 ao_Object *ao_self = (ao_Object *) self;
57 - info = ao_driver_info(ao_self->dev->driver_id);
58 + info = ao_driver_info(ao_self->driver_id);
71 static PyObject *Py_aoError;