summaryrefslogtreecommitdiff
path: root/python/python-apt.h
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-07-16 16:03:02 +0200
committerJulian Andres Klode <jak@debian.org>2009-07-16 16:03:02 +0200
commitef106396218522fce5856744741c7b3f87261cc2 (patch)
treebe4b380fab270e31927056f1506b4e52e105e77d /python/python-apt.h
parent16995d9f7f53d93f08ae0b438c70ea9d5e4d35e1 (diff)
downloadpython-apt-ef106396218522fce5856744741c7b3f87261cc2.tar.gz
python/acquire.cc: Introduce PyAcquireWorker_Type, make PyAcquireItemDesc_Type contain a pointer.
Diffstat (limited to 'python/python-apt.h')
-rw-r--r--python/python-apt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/python-apt.h b/python/python-apt.h
index fa589c55..d2693920 100644
--- a/python/python-apt.h
+++ b/python/python-apt.h
@@ -184,7 +184,7 @@ static int import_apt_pkg(void) {
# define PyAcquire_ToCpp GetCpp<pkgAcquire*>
# define PyAcquireFile_ToCpp GetCpp<pkgAcqFile*>
# define PyAcquireItem_ToCpp GetCpp<pkgAcquire::Item*>
-# define PyAcquireItemDesc_ToCpp GetCpp<pkgAcquire::ItemDesc>
+# define PyAcquireItemDesc_ToCpp GetCpp<pkgAcquire::ItemDesc*>
# define PyActionGroup_ToCpp GetCpp<pkgDepCache::ActionGroup*>
# define PyCache_ToCpp GetCpp<pkgCache*>
# define PyCacheFile_ToCpp GetCpp<pkgCacheFile*>
@@ -234,7 +234,7 @@ inline PyObject *FromCppOwned(PyTypeObject *pytype, Cpp const &obj,
# define PyAcquire_FromCpp(...) FromCpp<pkgAcquire*>(&PyAcquire_Type, ##__VA_ARGS__)
# define PyAcquireFile_FromCpp(...) FromCppOwned<pkgAcqFile*>(&PyAcquireFile_Type, ##__VA_ARGS__)
# define PyAcquireItem_FromCpp(...) FromCppOwned<pkgAcquire::Item*>(&PyAcquireItem_Type,##__VA_ARGS__)
-# define PyAcquireItemDesc_FromCpp(...) FromCppOwned<pkgAcquire::ItemDesc>(&PyAcquireItemDesc_Type,##__VA_ARGS__)
+# define PyAcquireItemDesc_FromCpp(...) FromCppOwned<pkgAcquire::ItemDesc*>(&PyAcquireItemDesc_Type,##__VA_ARGS__)
# define PyActionGroup_FromCpp(...) FromCppOwned<pkgDepCache::ActionGroup*>(&PyActionGroup_Type,##__VA_ARGS__)
# define PyCache_FromCpp(...) FromCppOwned<pkgCache*>(&PyCache_Type,##__VA_ARGS__)
# define PyCacheFile_FromCpp(...) FromCpp<pkgCacheFile*>(&PyCacheFile_Type,##__VA_ARGS__)