Make fiFromHeader() static inside header-py, deprecate
This commit is contained in:
parent
c21a1ea23d
commit
f0c3985a77
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -13,6 +13,4 @@ rpmfi fiFromFi(rpmfiObject * fi);
|
|||
|
||||
PyObject * rpmfi_Wrap(rpmfi fi);
|
||||
|
||||
PyObject * hdr_fiFromHeader(PyObject * s, PyObject * args, PyObject * kwds);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue