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/rpmfi-py.h | |
parent | ab66c9ff47664fcfae6eea2146be65ccbff43195 (diff) | |
download | librpm-tizen-36ada6c116e123f5b5b739e12f256201e5cc6fa1.tar.gz librpm-tizen-36ada6c116e123f5b5b739e12f256201e5cc6fa1.tar.bz2 librpm-tizen-36ada6c116e123f5b5b739e12f256201e5cc6fa1.zip |
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/rpmfi-py.h')
-rw-r--r-- | python/rpmfi-py.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/rpmfi-py.h b/python/rpmfi-py.h index 8029acd65..604bf716d 100644 --- a/python/rpmfi-py.h +++ b/python/rpmfi-py.h @@ -11,6 +11,6 @@ extern PyTypeObject rpmfi_Type; rpmfi fiFromFi(rpmfiObject * fi); -PyObject * rpmfi_Wrap(rpmfi fi); +PyObject * rpmfi_Wrap(PyTypeObject *subtype, rpmfi fi); #endif |