diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-09-23 10:19:46 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-09-23 10:19:46 +0300 |
commit | f0c3985a773706d8dc268d143120142acfbfa822 (patch) | |
tree | e8ad8274ecc3655b214efa70d2d7c9f707e9abce | |
parent | c21a1ea23db40bd136a859eb171a49ae51e25c64 (diff) | |
download | librpm-tizen-f0c3985a773706d8dc268d143120142acfbfa822.tar.gz librpm-tizen-f0c3985a773706d8dc268d143120142acfbfa822.tar.bz2 librpm-tizen-f0c3985a773706d8dc268d143120142acfbfa822.zip |
Make fiFromHeader() static inside header-py, deprecate
-rw-r--r-- | python/header-py.c | 7 | ||||
-rw-r--r-- | python/rpmfi-py.c | 5 | ||||
-rw-r--r-- | python/rpmfi-py.h | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/python/header-py.c b/python/header-py.c index 821d1f9c9..21a10bbcb 100644 --- a/python/header-py.c +++ b/python/header-py.c @@ -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); diff --git a/python/rpmfi-py.c b/python/rpmfi-py.c index ce3c3bef6..72582b9f9 100644 --- a/python/rpmfi-py.c +++ b/python/rpmfi-py.c @@ -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); -} diff --git a/python/rpmfi-py.h b/python/rpmfi-py.h index faa292bfd..8029acd65 100644 --- a/python/rpmfi-py.h +++ b/python/rpmfi-py.h @@ -13,6 +13,4 @@ rpmfi fiFromFi(rpmfiObject * fi); PyObject * rpmfi_Wrap(rpmfi fi); -PyObject * hdr_fiFromHeader(PyObject * s, PyObject * args, PyObject * kwds); - #endif |