summaryrefslogtreecommitdiff
path: root/python/rpmmi-py.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-09-24 11:42:17 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-09-24 11:42:17 +0300
commit36ada6c116e123f5b5b739e12f256201e5cc6fa1 (patch)
tree6f4cb506966ff356c975010caf816c6a70436424 /python/rpmmi-py.h
parentab66c9ff47664fcfae6eea2146be65ccbff43195 (diff)
downloadlibrpm-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/rpmmi-py.h')
-rw-r--r--python/rpmmi-py.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/rpmmi-py.h b/python/rpmmi-py.h
index e5410d6f3..ef07c72f8 100644
--- a/python/rpmmi-py.h
+++ b/python/rpmmi-py.h
@@ -7,6 +7,6 @@ extern PyTypeObject rpmmi_Type;
#define rpmmiObject_Check(v) ((v)->ob_type == &rpmmi_Type)
-PyObject * rpmmi_Wrap(rpmdbMatchIterator mi, PyObject *s);
+PyObject * rpmmi_Wrap(PyTypeObject *subtype, rpmdbMatchIterator mi, PyObject *s);
#endif