summaryrefslogtreecommitdiff
path: root/python/apt_instmodule.h
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-08-18 13:49:42 +0200
committerJulian Andres Klode <jak@debian.org>2009-08-18 13:49:42 +0200
commit3f286a1033479a7cfe40bc0e81c662eb3cd1d0f3 (patch)
tree47b2cf2dacc0a0a7b69e3b2e2851af1736475afc /python/apt_instmodule.h
parentf69208a3dc27357b19aad7879efca4300d56d8bb (diff)
downloadpython-apt-3f286a1033479a7cfe40bc0e81c662eb3cd1d0f3.tar.gz
python: Disable the functions in apt_inst if built without COMPAT_0_7.
Developers should use the class-based API instead.
Diffstat (limited to 'python/apt_instmodule.h')
-rw-r--r--python/apt_instmodule.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/apt_instmodule.h b/python/apt_instmodule.h
index 9f978e44..2b07261b 100644
--- a/python/apt_instmodule.h
+++ b/python/apt_instmodule.h
@@ -14,11 +14,12 @@
#include "generic.h"
#include <apt-pkg/extracttar.h>
+#ifdef COMPAT_0_7
PyObject *debExtract(PyObject *Self,PyObject *Args);
extern char *doc_debExtract;
PyObject *tarExtract(PyObject *Self,PyObject *Args);
extern char *doc_tarExtract;
-
+#endif
extern PyTypeObject PyArMember_Type;
extern PyTypeObject PyArArchive_Type;