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-worker.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-worker.h')
-rw-r--r-- | apt-pkg/acquire-worker.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/acquire-worker.h b/apt-pkg/acquire-worker.h index 2942df69f..06283922e 100644 --- a/apt-pkg/acquire-worker.h +++ b/apt-pkg/acquire-worker.h @@ -20,6 +20,7 @@ #define PKGLIB_ACQUIRE_WORKER_H #include <apt-pkg/acquire.h> +#include <apt-pkg/weakptr.h> /** \brief A fetch subprocess. @@ -41,7 +42,7 @@ * * \sa pkgAcqMethod, pkgAcquire::Item, pkgAcquire */ -class pkgAcquire::Worker +class pkgAcquire::Worker : public WeakPointable { friend class pkgAcquire; |