static PyObject * rpmfi_new(PyTypeObject * subtype, PyObject *args, PyObject *kwds) { PyObject * to = NULL; Header h = NULL; rpmfi fi = NULL; rpmTagVal tagN = RPMTAG_BASENAMES; int flags = 0; rpmstrPool pool = NULL; char * kwlist[] = {"header", "tag", "flags", "pool", NULL}; if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&|OiO&:rpmfi_init", kwlist, hdrFromPyObject, &h, &to, &flags, poolFromPyObject, &pool)) return NULL; fi = rpmfiNewPool(pool, h, tagN, flags); if (fi == NULL) { PyErr_SetString(PyExc_ValueError, "invalid file data in header"); return NULL; } return rpmfi_Wrap(subtype, fi); }
rpmfi rpmfiNew(const rpmts ts, Header h, rpmTagVal tagN, rpmfiFlags flags) { return rpmfiNewPool(NULL, h, tagN, flags); }