Make fiFromHeader() static inside header-py, deprecate

This commit is contained in:
Panu Matilainen 2009-09-23 10:19:46 +03:00
parent c21a1ea23d
commit f0c3985a77
3 changed files with 7 additions and 7 deletions

View File

@ -289,6 +289,13 @@ static PyObject *hdrConvert(hdrObject *self, PyObject *args, PyObject *kwds)
return PyBool_FromLong(headerConvert(self->h, op));
}
static PyObject * hdr_fiFromHeader(PyObject * s, PyObject * args, PyObject * kwds)
{
DEPRECATED_METHOD;
return PyObject_Call((PyObject *) &rpmfi_Type,
Py_BuildValue("(O)", s), kwds);
}
static int hdr_compare(hdrObject * a, hdrObject * b)
{
return rpmVersionCompare(a->h, b->h);

View File

@ -417,8 +417,3 @@ PyObject * rpmfi_Wrap(rpmfi fi)
return (PyObject *) s;
}
PyObject * hdr_fiFromHeader(PyObject * s, PyObject * args, PyObject * kwds)
{
return PyObject_Call((PyObject *) &rpmfi_Type,
Py_BuildValue("(O)", s), kwds);
}

View File

@ -13,6 +13,4 @@ rpmfi fiFromFi(rpmfiObject * fi);
PyObject * rpmfi_Wrap(rpmfi fi);
PyObject * hdr_fiFromHeader(PyObject * s, PyObject * args, PyObject * kwds);
#endif