diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-07-16 16:03:02 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-07-16 16:03:02 +0200 |
| commit | ef106396218522fce5856744741c7b3f87261cc2 (patch) | |
| tree | be4b380fab270e31927056f1506b4e52e105e77d /python/python-apt.h | |
| parent | 16995d9f7f53d93f08ae0b438c70ea9d5e4d35e1 (diff) | |
| download | python-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.h | 4 |
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__) |
