diff options
| author | Julian Andres Klode <jak@debian.org> | 2010-02-02 17:59:22 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2010-02-02 17:59:22 +0100 |
| commit | 3827ac6144cc4beda932a7602e66e4286a3e4265 (patch) | |
| tree | a932fc558d17a6fb107fd491c664da2981d15db7 /python/apt_pkgmodule.h | |
| parent | 7516fccf52d03722a61a34b1e36f90808670c754 (diff) | |
| download | python-apt-3827ac6144cc4beda932a7602e66e4286a3e4265.tar.gz | |
python: Update PyAcquire_FromCpp to the new API rules (add Owner parameter).
Diffstat (limited to 'python/apt_pkgmodule.h')
| -rw-r--r-- | python/apt_pkgmodule.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/apt_pkgmodule.h b/python/apt_pkgmodule.h index 3dcf8069..da647c3f 100644 --- a/python/apt_pkgmodule.h +++ b/python/apt_pkgmodule.h @@ -134,7 +134,7 @@ extern PyTypeObject PySystemLock_Type; extern PyTypeObject PyFileLock_Type; // Functions to be exported in the public API. -PyObject *PyAcquire_FromCpp(pkgAcquire *fetcher, bool Delete); + # define PyAcquire_ToCpp GetCpp<pkgAcquire*> # define PyAcquireFile_ToCpp GetCpp<pkgAcqFile*> # define PyAcquireItem_ToCpp GetCpp<pkgAcquire::Item*> @@ -167,6 +167,7 @@ PyObject *PyAcquire_FromCpp(pkgAcquire *fetcher, bool Delete); # define PyTagSection_ToCpp GetCpp<pkgTagSection> # define PyVersion_ToCpp GetCpp<pkgCache::VerIterator> +PyObject* PyAcquire_FromCpp(pkgAcquire *fetcher, bool Delete, PyObject *Owner); PyObject* PyAcquireFile_FromCpp(pkgAcqFile* const &obj, bool Delete, PyObject *Owner); PyObject* PyAcquireItem_FromCpp(pkgAcquire::Item* const &obj, bool Delete, PyObject *Owner); PyObject* PyAcquireItemDesc_FromCpp(pkgAcquire::ItemDesc* const &obj, bool Delete, PyObject *Owner); |
