X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/3174e150a3c97a471998cfe73a11bd4996da9ab7..be9b62f76406cf2546d21f3ca27587ee20e0fc37:/apt-pkg/acquire-worker.h?ds=sidebyside diff --git a/apt-pkg/acquire-worker.h b/apt-pkg/acquire-worker.h index 1f6bcc05f..62545829a 100644 --- a/apt-pkg/acquire-worker.h +++ b/apt-pkg/acquire-worker.h @@ -20,10 +20,8 @@ #define PKGLIB_ACQUIRE_WORKER_H #include +#include -#ifdef __GNUG__ -#pragma interface "apt-pkg/acquire-worker.h" -#endif /** \brief A fetch subprocess. * @@ -44,8 +42,11 @@ * * \sa pkgAcqMethod, pkgAcquire::Item, pkgAcquire */ -class pkgAcquire::Worker +class pkgAcquire::Worker : public WeakPointable { + /** \brief dpointer placeholder (for later in case we need it) */ + void *d; + friend class pkgAcquire; protected: @@ -316,7 +317,7 @@ class pkgAcquire::Worker * Closes the file descriptors; if MethodConfig::NeedsCleanup is * \b false, also rudely interrupts the worker with a SIGINT. */ - ~Worker(); + virtual ~Worker(); }; /** @} */