summaryrefslogtreecommitdiff
path: root/python/spec-py.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-07-01 12:55:53 +0300
committerPanu Matilainen <pmatilai@redhat.com>2011-07-01 12:55:53 +0300
commitdc50fb2863c81159fb4cc8b25ce3862720c0cce5 (patch)
treeecb5d5ac9f5d16aecaa6ba66c3009bdc24642702 /python/spec-py.h
parent3464e60aa8635b63213e65724e19d263b9c6645d (diff)
downloadrpm-dc50fb2863c81159fb4cc8b25ce3862720c0cce5.tar.gz
Fix/sanitize rpm.spec python object creation
- Specs are not really immutable, move the initialization work into tp_init and use PyType_GenericNew for tp_new since we're not doing anything special there. - Eliminate the stupid spec_Wrap() thing and hide specPkg_Wrap() out of side (TODO later...)
Diffstat (limited to 'python/spec-py.h')
-rw-r--r--python/spec-py.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/python/spec-py.h b/python/spec-py.h
index 558fbf207..28a5ee7bf 100644
--- a/python/spec-py.h
+++ b/python/spec-py.h
@@ -12,7 +12,4 @@ extern PyTypeObject specPkg_Type;
#define specObject_Check(v) ((v)->ob_type == &spec_Type)
#define specPkgObject_Check(v) ((v)->ob_type == &specPkg_Type)
-PyObject * spec_Wrap(PyTypeObject *subtype, rpmSpec spec);
-PyObject * specPkg_Wrap(PyTypeObject *subtype, rpmSpecPkg pkg);
-
#endif /* RPMPYTHON_SPEC */