diff options
author | Julian Andres Klode <jak@debian.org> | 2010-05-04 17:05:23 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2010-05-04 17:05:23 +0200 |
commit | 229fb1a3a35bade26cfff373087461d7a98aade3 (patch) | |
tree | e8c492f9c456243b5291c73030e83dd9e65897d3 /apt-pkg/acquire-item.h | |
parent | af8a8da9c1aa6506d230a0df8abc670661176ba3 (diff) |
* apt-pkg/contrib/weakptr.h:
- add a class WeakPointable which allows one to register weak pointers to
an object which will be set to NULL when the object is deallocated.
* [ABI break] apt-pkg/acquire{-worker,-item,}.h:
- subclass pkgAcquire::{Worker,Item,ItemDesc} from WeakPointable.
Diffstat (limited to 'apt-pkg/acquire-item.h')
-rw-r--r-- | apt-pkg/acquire-item.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/acquire-item.h b/apt-pkg/acquire-item.h index bafa8263a..b338b2a41 100644 --- a/apt-pkg/acquire-item.h +++ b/apt-pkg/acquire-item.h @@ -27,6 +27,7 @@ #include <apt-pkg/pkgrecords.h> #include <apt-pkg/indexrecords.h> #include <apt-pkg/hashes.h> +#include <apt-pkg/weakptr.h> /** \addtogroup acquire * @{ @@ -46,7 +47,7 @@ * * \see pkgAcquire */ -class pkgAcquire::Item +class pkgAcquire::Item : public WeakPointable { protected: |