diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-09-24 11:42:17 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-09-24 11:42:17 +0300 |
commit | 36ada6c116e123f5b5b739e12f256201e5cc6fa1 (patch) | |
tree | 6f4cb506966ff356c975010caf816c6a70436424 /python/rpmte-py.h | |
parent | ab66c9ff47664fcfae6eea2146be65ccbff43195 (diff) | |
download | rpm-36ada6c116e123f5b5b739e12f256201e5cc6fa1.tar.gz |
Make object allocation type agnostic
- pass (sub)type down to wrappers
- call subtype tp_alloc() instead of PyObject_New()
- preliminaries for allowing subtyping
Diffstat (limited to 'python/rpmte-py.h')
-rw-r--r-- | python/rpmte-py.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/rpmte-py.h b/python/rpmte-py.h index 0a273ed1d..28bc0e32e 100644 --- a/python/rpmte-py.h +++ b/python/rpmte-py.h @@ -9,6 +9,6 @@ extern PyTypeObject rpmte_Type; #define rpmteObject_Check(v) ((v)->ob_type == &rpmte_Type) -PyObject * rpmte_Wrap(rpmte te); +PyObject * rpmte_Wrap(PyTypeObject *subtype, rpmte te); #endif |